Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
71460738
Commit
71460738
authored
Jun 04, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use module-level import of DEBUG instead of many function-level imports.
parent
fc861bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
Lib/distutils/dist.py
Lib/distutils/dist.py
+1
-4
No files found.
Lib/distutils/dist.py
View file @
71460738
...
...
@@ -16,6 +16,7 @@ from distutils.errors import *
from
distutils.fancy_getopt
import
FancyGetopt
,
translate_longopt
from
distutils.util
import
check_environ
,
strtobool
,
rfc822_escape
from
distutils
import
log
from
distutils.core
import
DEBUG
# Regex to define acceptable Distutils command names. This is not *quite*
# the same as a Python NAME -- I don't allow leading underscores. The fact
...
...
@@ -305,7 +306,6 @@ class Distribution:
def
parse_config_files
(
self
,
filenames
=
None
):
from
ConfigParser
import
ConfigParser
from
distutils.core
import
DEBUG
if
filenames
is
None
:
filenames
=
self
.
find_config_files
()
...
...
@@ -771,7 +771,6 @@ class Distribution:
object for 'command' is in the cache, then we either create and
return it (if 'create' is true) or return None.
"""
from
distutils.core
import
DEBUG
cmd_obj
=
self
.
command_obj
.
get
(
command
)
if
not
cmd_obj
and
create
:
if
DEBUG
:
...
...
@@ -802,8 +801,6 @@ class Distribution:
supplied, uses the standard option dictionary for this command
(from 'self.command_options').
"""
from
distutils.core
import
DEBUG
command_name
=
command_obj
.
get_command_name
()
if
option_dict
is
None
:
option_dict
=
self
.
get_option_dict
(
command_name
)
...
...
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