# HG changeset patch # User Mads Kiilerich # Date 1595714592 -7200 # 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 -r d727e81e0097 -r eca0cb56a822 kallithea/bin/base.py --- a/kallithea/bin/base.py Wed Jul 22 21:55:57 2020 +0200 +++ b/kallithea/bin/base.py Sun Jul 26 00:03:12 2020 +0200 @@ -130,7 +130,7 @@ 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)