Annoying deprecation warning in Python 2.5

This commit is contained in:
rdb 2008-10-10 18:51:40 +00:00
parent 8f8d56b530
commit 0ef34bcbc2

View File

@ -41,7 +41,7 @@ if sys.platform == "win32":
target = dir
if target == None:
message = "Cannot find %s" % (filename)
raise message
raise ImportError, message
# And add that directory to the system path.
path = os.environ["PATH"]
@ -62,7 +62,7 @@ def Dtool_PreloadDLL(module):
break
if target == None:
message = "DLL loader cannot find %s." % (module)
raise message
raise ImportError, message
# Now import the file explicitly.
pathname = os.path.join(target, filename)