changeset 31274:063d7957fa12

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.
author Augie Fackler <raf@durin42.com>
date Fri, 03 Mar 2017 13:32:10 -0500
parents d79761fe697f
children 79715ba22f9c
files mercurial/extensions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/extensions.py	Fri Mar 03 13:27:21 2017 -0500
+++ b/mercurial/extensions.py	Fri Mar 03 13:32:10 2017 -0500
@@ -160,7 +160,7 @@
     newindex = len(_order)
     for (name, path) in result:
         if path:
-            if path[0] == '!':
+            if path[0:1] == '!':
                 _disabledextensions[name] = path[1:]
                 continue
         try: