# HG changeset patch # User Augie Fackler # Date 2017-03-03 18:32:10 # Node ID 063d7957fa1299b6ee51384c9188acc66aea9d6a # Parent d79761fe697fafd6bc5a2b7e15a37169c66d4ade extensions: use [0:1] slice on config path instead of [0] This behaves the same in Python 2 and Python 3, even though the path is a bytes. diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -160,7 +160,7 @@ def loadall(ui): newindex = len(_order) for (name, path) in result: if path: - if path[0] == '!': + if path[0:1] == '!': _disabledextensions[name] = path[1:] continue try: