hgext/schemes.py
changeset 34645 75979c8d4572
parent 32337 46ba2cdda476
child 36668 e77cee5de1c7
--- a/hgext/schemes.py	Thu Oct 12 19:20:04 2017 -0700
+++ b/hgext/schemes.py	Thu Oct 12 23:30:46 2017 -0700
@@ -116,7 +116,7 @@
     schemes.update(dict(ui.configitems('schemes')))
     t = templater.engine(lambda x: x)
     for scheme, url in schemes.items():
-        if (pycompat.osname == 'nt' and len(scheme) == 1 and scheme.isalpha()
+        if (pycompat.iswindows and len(scheme) == 1 and scheme.isalpha()
             and os.path.exists('%s:\\' % scheme)):
             raise error.Abort(_('custom scheme %s:// conflicts with drive '
                                'letter %s:\\\n') % (scheme, scheme.upper()))