aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/saveopts.py
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2014-06-18 20:31:05 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2014-06-18 20:31:05 +0300
commit8e3f9d3253d1d0fb820dad4249d5110d017595c1 (patch)
tree04cb00f66a8e3a6b41031d7dfb39c598ce4aa06d /setuptools/command/saveopts.py
parentafea314acbcd6db19dcc96d84fa9652f71b883fb (diff)
downloadexternal_python_setuptools-8e3f9d3253d1d0fb820dad4249d5110d017595c1.tar.gz
external_python_setuptools-8e3f9d3253d1d0fb820dad4249d5110d017595c1.tar.bz2
external_python_setuptools-8e3f9d3253d1d0fb820dad4249d5110d017595c1.zip
Fixed PEP 8 compliancy of the setuptools.command package
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)
-