Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/treesum.py @ 262:c3d6599c1b5e
FIX: treesum: bytearray needs not to be handled
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 16 Feb 2025 15:25:37 +0100 |
| parents | a3e25957afb7 |
| children | 0add8276e6b8 |
comparison
equal
deleted
inserted
replaced
| 261:a3e25957afb7 | 262:c3d6599c1b5e |
|---|---|
| 988 self.write(b"FSENCODING = ") | 988 self.write(b"FSENCODING = ") |
| 989 self.writeln(util.b(encoding)) | 989 self.writeln(util.b(encoding)) |
| 990 | 990 |
| 991 def write_flags(self, flags): | 991 def write_flags(self, flags): |
| 992 self.write(b"FLAGS = ") | 992 self.write(b"FLAGS = ") |
| 993 if isinstance(flags, (str, bytes, bytearray)): | 993 if isinstance(flags, (str, bytes)): |
| 994 self.writeln(util.b(flags)) | 994 self.writeln(util.b(flags)) |
| 995 else: | 995 else: |
| 996 flags.sort() | 996 flags.sort() |
| 997 self.writeln(util.b(",".join(flags))) | 997 self.writeln(util.b(",".join(flags))) |
| 998 | 998 |
