This has been broken for some time since py3 requires the options to be
in string format, it's just a very infrequent codepath.
if tabwidth != 8:
tabwidth_mod = True
if tabwidth_mod:
+ print("Changing tab width for %s" % name)
if not repoconf.has_section('gitweb'):
repoconf.add_section('gitweb')
- repoconf.set('gitweb', 'tabwidth', tabwidth)
+ repoconf.set('gitweb', 'tabwidth', str(tabwidth))
cf = open("%s/config" % repopath, "wb")
repoconf.write(cf)
cf.close()