##// END OF EJS Templates
util: move windows and posix wildcard imports to begin of file
Adrian Buehlmann -
r14912:ec46a7da default
parent child Browse files
Show More
@@ -19,6 +19,11 b' import errno, re, shutil, sys, tempfile,'
19 import os, time, calendar, textwrap, unicodedata, signal
19 import os, time, calendar, textwrap, unicodedata, signal
20 import imp, socket, urllib
20 import imp, socket, urllib
21
21
22 if os.name == 'nt':
23 from windows import *
24 else:
25 from posix import *
26
22 # Python compatibility
27 # Python compatibility
23
28
24 def sha1(s):
29 def sha1(s):
@@ -477,9 +482,6 b' def checkwinfilename(path):'
477
482
478 if os.name == 'nt':
483 if os.name == 'nt':
479 checkosfilename = checkwinfilename
484 checkosfilename = checkwinfilename
480 from windows import *
481 else:
482 from posix import *
483
485
484 def makelock(info, pathname):
486 def makelock(info, pathname):
485 try:
487 try:
General Comments 0
You need to be logged in to leave comments. Login now