Mercurial > kallithea
changeset 8456:eca0cb56a822 stable
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)
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 26 Jul 2020 00:03:12 +0200 |
parents | d727e81e0097 |
children | c91f5f36fb2b 3e9d079fcf91 |
files | kallithea/bin/base.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)