diff options
| author | Joe Heck <heckj@mac.com> | 2012-11-21 21:48:12 +0000 |
|---|---|---|
| committer | Dolph Mathews <dolph.mathews@gmail.com> | 2012-11-26 13:37:18 -0600 |
| commit | f9649e2615ff1be30bdca1c96b02c2a36dab84ac (patch) | |
| tree | 6a8c3d92614979d13d95a3dab37b5a6c3012f7f0 /tools | |
| parent | e4ed1f39a03d9979e8b41cfc6ef0daea159034a4 (diff) | |
| download | python-keystoneclient-f9649e2615ff1be30bdca1c96b02c2a36dab84ac.tar.gz | |
updating PEP8 to 1.3.3
* matching cinder, glance, etc
* made run_tests exclusions match tox
Change-Id: I9963245b079535a38a8c9b46917e8d833b62addb
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/install_venv.py | 7 | ||||
| -rw-r--r-- | tools/test-requires | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py index ecfc93e..06dced8 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -169,7 +169,7 @@ class Suse(Distro): def get_distro(): if (os.path.exists('/etc/fedora-release') or - os.path.exists('/etc/redhat-release')): + os.path.exists('/etc/redhat-release')): return Fedora() elif os.path.exists('/etc/SuSE-release'): return Suse() @@ -218,7 +218,7 @@ def install_dependencies(venv=VENV): # Tell the virtual env how to "import nova" pthfile = os.path.join(venv, "lib", PY_VERSION, "site-packages", - "keystoneclient.pth") + "keystoneclient.pth") f = open(pthfile, 'w') f.write("%s\n" % ROOT) @@ -252,7 +252,8 @@ def print_help(): def parse_args(): """Parse command-line arguments""" parser = optparse.OptionParser() - parser.add_option("-n", "--no-site-packages", dest="no_site_packages", + parser.add_option( + "-n", "--no-site-packages", dest="no_site_packages", default=False, action="store_true", help="Do not inherit packages from global Python install") return parser.parse_args() diff --git a/tools/test-requires b/tools/test-requires index 8d9547b..69d94ba 100644 --- a/tools/test-requires +++ b/tools/test-requires @@ -7,7 +7,7 @@ nose nose-exclude openstack.nose_plugin nosehtmloutput -pep8==1.2 +pep8==1.3.3 sphinx>=1.1.2 unittest2>=0.5.1 WebOb==1.0.8 |
