Another unicode fix for writing repo configs
authorMagnus Hagander <magnus@hagander.net>
Sun, 23 Feb 2020 21:18:50 +0000 (22:18 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sun, 23 Feb 2020 21:18:50 +0000 (22:18 +0100)
gitdump.py

index 9293b0798a0c986c45e7f6837640d82444b539e4..b42bdb7756cbb39c639b49c4ecbbbbc4fc090560 100644 (file)
@@ -122,7 +122,7 @@ FROM repositories AS r WHERE approved ORDER BY name""")
                     if not repoconf.has_section('gitweb'):
                         repoconf.add_section('gitweb')
                     repoconf.set('gitweb', 'tabwidth', str(tabwidth))
-                    cf = open("%s/config" % repopath, "wb")
+                    cf = open("%s/config" % repopath, "w")
                     repoconf.write(cf)
                     cf.close()