# HG changeset patch # User Mads Kiilerich # Date 2020-07-26 00:03:12 # Node ID eca0cb56a822690c58e6237e9787cd8cfa77fddc # Parent d727e81e00975c88faf2a2f438391c7acd551341 py3: fix rc_types error Spotted by pytypes: File "kallithea/bin/base.py", line 133, in make_config: Function BinaryIO.write was called with the wrong arguments [wrong-arg-types] Expected: (self, s: Union[bytearray, bytes, memoryview]) Actually passed: (self, s: str) diff --git a/kallithea/bin/base.py b/kallithea/bin/base.py --- a/kallithea/bin/base.py +++ b/kallithea/bin/base.py @@ -130,7 +130,7 @@ class RcConf(object): update = True with open(self._conf_name, 'wb') as f: ext_json.dump(config, f, indent=4) - f.write('\n') + f.write(b'\n') if update: sys.stdout.write('Updated config in %s\n' % self._conf_name)