# HG changeset patch # User Anton Shestakov # Date 1593965864 -28800 # Node ID 4b6b559b92c8e1d0636fde8d6f47101fb072ac3e # Parent 9d6c3e227455b4d32c548a9dbd989ddf5fae16b8 docs: make docs/conf.py compatible with Python 3 diff -r 9d6c3e227455 -r 4b6b559b92c8 docs/conf.py --- a/docs/conf.py Mon Nov 09 23:10:06 2020 +0800 +++ b/docs/conf.py Mon Jul 06 00:17:44 2020 +0800 @@ -15,6 +15,7 @@ from mercurial import ( commands, extensions as hgext, + pycompat, ui as uimod, ) @@ -154,7 +155,7 @@ ui.disablepager() rootdir = abspath(dirname(dirname(__file__))) evolvepath = join(rootdir, 'hgext3rd', 'evolve') - ui.setconfig('extensions', 'evolve', evolvepath) + ui.setconfig(b'extensions', b'evolve', pycompat.bytestr(evolvepath)) hgext.loadall(ui) ui.pushbuffer() commands.help_(ui, self.content[0].encode('utf-8'))