Submitter | Pulkit Goyal |
---|---|
Date | Nov. 2, 2016, 10:15 p.m. |
Message ID | <8cd0e855ebb448a4ec1e.1478124920@pulkit-goyal> |
Download | mbox | patch |
Permalink | /patch/17296/ |
State | Superseded |
Headers | show |
Comments
Patch
diff -r 495481800cc6 -r 8cd0e855ebb4 mercurial/ui.py --- a/mercurial/ui.py Thu Nov 03 02:27:46 2016 +0530 +++ b/mercurial/ui.py Thu Nov 03 02:53:45 2016 +0530 @@ -520,7 +520,12 @@ result = self.config(section, name, untrusted=untrusted) if result is None: result = default or [] - if isinstance(result, basestring): + checkunicode = False + try: + checkunicode = isinstance(result, basestring) + except NameError: + checkunicode = isinstance(result, str) + if checkunicode: result = _configlist(result.lstrip(' ,\n')) if result is None: result = default or []