aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/saveopts.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/saveopts.py')
-rwxr-xr-xsetuptools/command/saveopts.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/setuptools/command/saveopts.py b/setuptools/command/saveopts.py
index 7209be4c..611cec55 100755
--- a/setuptools/command/saveopts.py
+++ b/setuptools/command/saveopts.py
@@ -1,7 +1,6 @@
-import distutils, os
-from setuptools import Command
from setuptools.command.setopt import edit_config, option_base
+
class saveopts(option_base):
"""Save command-line options to a file"""
@@ -13,12 +12,11 @@ class saveopts(option_base):
for cmd in dist.command_options:
- if cmd=='saveopts':
- continue # don't save our own options!
+ if cmd == 'saveopts':
+ continue # don't save our own options!
- for opt,(src,val) in dist.get_option_dict(cmd).items():
- if src=="command line":
- settings.setdefault(cmd,{})[opt] = val
+ for opt, (src, val) in dist.get_option_dict(cmd).items():
+ if src == "command line":
+ settings.setdefault(cmd, {})[opt] = val
edit_config(self.filename, settings, self.dry_run)
-