mirror of https://gitlab.com/ita1024/waf.git
Simplifications
This commit is contained in:
parent
017d8fd39e
commit
1fb3645493
|
@ -9,7 +9,7 @@ The portability fixes try to provide a consistent behavior of the Waf API
|
|||
through Python versions 2.5 to 3.X and across different platforms (win32, linux, etc)
|
||||
"""
|
||||
|
||||
import os, sys, errno, traceback, inspect, re, shutil, datetime, gc, platform, time, base64
|
||||
import os, sys, errno, traceback, inspect, re, shutil, datetime, platform, base64
|
||||
try:
|
||||
import cPickle
|
||||
except ImportError:
|
||||
|
@ -36,11 +36,6 @@ except ImportError:
|
|||
|
||||
from waflib import Errors
|
||||
|
||||
try:
|
||||
from collections import UserDict
|
||||
except ImportError:
|
||||
from UserDict import UserDict
|
||||
|
||||
try:
|
||||
from hashlib import md5
|
||||
except ImportError:
|
||||
|
@ -351,7 +346,7 @@ def listdir_win32(s):
|
|||
import ctypes
|
||||
except ImportError:
|
||||
# there is nothing much we can do
|
||||
return [x + ':\\' for x in list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')]
|
||||
return [x + ':\\' for x in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ']
|
||||
else:
|
||||
dlen = 4 # length of "?:\\x00"
|
||||
maxdrives = 26
|
||||
|
|
Loading…
Reference in New Issue