Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
3cba55eb
Commit
3cba55eb
authored
Jul 10, 1999
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pollute importer's namespace with type objects from types modules.
Added DistutilsPlatformError.
parent
93d1813d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
errors.py
errors.py
+11
-2
No files found.
errors.py
View file @
3cba55eb
...
...
@@ -12,9 +12,9 @@ symbols whose names start with "Distutils" and end with "Error"."""
__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
):
...
...
@@ -52,6 +52,12 @@ if type (RuntimeError) is ClassType:
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'
...
...
@@ -61,3 +67,6 @@ else:
DistutilsArgError
=
'DistutilsArgError'
DistutilsFileError
=
'DistutilsFileError'
DistutilsOptionError
=
'DistutilsOptionError'
DistutilsPlatformError
=
'DistutilsPlatformError'
del
types
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment