diff mercurial/windows.py @ 17203:0cb55b5c19a3

util, posix: eliminate encodinglower and encodingupper 2ebe3d0ce91d claims this was needed "to avoid cyclic dependency", but there is no cyclic dependency. windows.py already imports encoding, posix.py can import it too, so we can simply use encoding.upper in windows.py and in posix.py. (this is a partial backout of 2ebe3d0ce91d)
author Adrian Buehlmann <adrian@cadifra.com>
date Wed, 18 Jul 2012 14:41:58 +0200
parents 80142f385af9
children c315842cb25f
line wrap: on
line diff
--- a/mercurial/windows.py	Sun Jul 08 17:17:02 2012 +0200
+++ b/mercurial/windows.py	Wed Jul 18 14:41:58 2012 +0200
@@ -130,11 +130,8 @@
 def normpath(path):
     return pconvert(os.path.normpath(path))
 
-encodinglower = None
-encodingupper = None
-
 def normcase(path):
-    return encodingupper(path)
+    return encoding.upper(path)
 
 def realpath(path):
     '''