comparison mercurial/util.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 8d08a28aa63e
children e73128535105
comparison
equal deleted inserted replaced
17202:1ae119269ddc 17203:0cb55b5c19a3
21 21
22 if os.name == 'nt': 22 if os.name == 'nt':
23 import windows as platform 23 import windows as platform
24 else: 24 else:
25 import posix as platform 25 import posix as platform
26
27 platform.encodinglower = encoding.lower
28 platform.encodingupper = encoding.upper
29 26
30 cachestat = platform.cachestat 27 cachestat = platform.cachestat
31 checkexec = platform.checkexec 28 checkexec = platform.checkexec
32 checklink = platform.checklink 29 checklink = platform.checklink
33 copymode = platform.copymode 30 copymode = platform.copymode