__rcsid__ = "$Id$"
-from types import *
+import types
-if type (RuntimeError) is ClassType:
+if type (RuntimeError) is types.ClassType:
# DistutilsError is the root of all Distutils evil.
class DistutilsError (Exception):
class DistutilsOptionError (DistutilsError):
pass
+ # DistutilsPlatformError is raised when we find that we don't
+ # know how to do something on the current platform (but we do
+ # know how to do it on some platform).
+ class DistutilsPlatformError (DistutilsError):
+ pass
+
# String-based exceptions
else:
DistutilsError = 'DistutilsError'
DistutilsArgError = 'DistutilsArgError'
DistutilsFileError = 'DistutilsFileError'
DistutilsOptionError = 'DistutilsOptionError'
+ DistutilsPlatformError = 'DistutilsPlatformError'
+
+del types