# HG changeset patch # User Pierre-Yves David # Date 2020-03-18 20:27:45 # Node ID bc9a9016467d90a613816950175e05671af277e6 # Parent 864e9534d3d4f984e9c50a40e812e844816847bc byteify-string: resolve symlink before byteifying Otherwise the script turns symlinks into regular files. diff --git a/contrib/byteify-strings.py b/contrib/byteify-strings.py --- a/contrib/byteify-strings.py +++ b/contrib/byteify-strings.py @@ -328,6 +328,7 @@ def main(): 'allow-attr-methods': args.allow_attr_methods, } for fname in args.files: + fname = os.path.realpath(fname) if args.inplace: with editinplace(fname) as fout: with open(fname, 'rb') as fin: