summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-07-07 20:45:21 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-07-07 20:45:21 (GMT)
commit65d6edb478d8c649766c59c5ae186bf0d1e812e6 (patch)
tree57abda04efa17d981ec8ea679a725af5a1e057c9 /Lib/distutils/dist.py
parentbc30b117643a3bffb39ba3e93bba1beb493d1f37 (diff)
downloadcpython-65d6edb478d8c649766c59c5ae186bf0d1e812e6.zip
cpython-65d6edb478d8c649766c59c5ae186bf0d1e812e6.tar.gz
cpython-65d6edb478d8c649766c59c5ae186bf0d1e812e6.tar.bz2
fix inconsistent use of tabs and spaces
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py34
1 files changed, 17 insertions, 17 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index bb47606..5f81c88 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -275,13 +275,13 @@ class Distribution:
# What to call the per-user config file
if os.name == 'posix':
- user_filename = ".pydistutils.cfg"
- else:
- user_filename = "pydistutils.cfg"
+ user_filename = ".pydistutils.cfg"
+ else:
+ user_filename = "pydistutils.cfg"
# And look for the user config file
- if os.environ.has_key('HOME'):
- user_file = os.path.join(os.environ.get('HOME'), user_filename)
+ if os.environ.has_key('HOME'):
+ user_file = os.path.join(os.environ.get('HOME'), user_filename)
if os.path.isfile(user_file):
files.append(user_file)
@@ -439,7 +439,7 @@ class Distribution:
# Check for help_options in command class. They have a different
# format (tuple of four) so we need to preprocess them here.
- if (hasattr(cmd_class, 'help_options') and
+ if (hasattr(cmd_class, 'help_options') and
type (cmd_class.help_options) is ListType):
help_options = fix_help_options(cmd_class.help_options)
else:
@@ -457,17 +457,17 @@ class Distribution:
self._show_help(parser, display_options=0, commands=[cmd_class])
return
- if (hasattr(cmd_class, 'help_options') and
+ if (hasattr(cmd_class, 'help_options') and
type (cmd_class.help_options) is ListType):
- help_option_found=0
- for (help_option, short, desc, func) in cmd_class.help_options:
- if hasattr(opts, parser.get_attr_name(help_option)):
- help_option_found=1
+ help_option_found=0
+ for (help_option, short, desc, func) in cmd_class.help_options:
+ if hasattr(opts, parser.get_attr_name(help_option)):
+ help_option_found=1
#print "showing help for option %s of command %s" % \
# (help_option[0],cmd_class)
if callable(func):
- func()
+ func()
else:
raise DistutilsClassError, \
("invalid help function %s for help option '%s': "
@@ -475,7 +475,7 @@ class Distribution:
(`func`, help_option)
if help_option_found:
- return
+ return
# Put the options from the command-line into their official
# holding pen, the 'command_options' dictionary.
@@ -526,12 +526,12 @@ class Distribution:
klass = command
else:
klass = self.get_command_class (command)
- if (hasattr(klass, 'help_options') and
+ if (hasattr(klass, 'help_options') and
type (klass.help_options) is ListType):
- parser.set_option_table (klass.user_options +
+ parser.set_option_table (klass.user_options +
fix_help_options(klass.help_options))
- else:
- parser.set_option_table (klass.user_options)
+ else:
+ parser.set_option_table (klass.user_options)
parser.print_help ("Options for '%s' command:" % klass.__name__)
print