# HG changeset patch # User Pierre-Yves David # Date 1584563265 -3600 # Node ID bc9a9016467d90a613816950175e05671af277e6 # Parent 864e9534d3d4f984e9c50a40e812e844816847bc byteify-string: resolve symlink before byteifying Otherwise the script turns symlinks into regular files. diff -r 864e9534d3d4 -r bc9a9016467d contrib/byteify-strings.py --- a/contrib/byteify-strings.py Thu Mar 12 15:23:47 2020 +0100 +++ b/contrib/byteify-strings.py Wed Mar 18 21:27:45 2020 +0100 @@ -328,6 +328,7 @@ '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: