From 72dd8e0089e7ab0a23a7882b36e556b98138b17e Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sun, 30 Jun 2013 17:50:33 -0700 Subject: [PATCH] A few pep8 cleanups. Change-Id: Ic5a7f3f24c1312e3b48e380457729791ea9eab03 --- anvil/components/base_testing.py | 6 +++--- anvil/packaging/helpers/pip_helper.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/anvil/components/base_testing.py b/anvil/components/base_testing.py index cf44bc4e..a33b5fd0 100644 --- a/anvil/components/base_testing.py +++ b/anvil/components/base_testing.py @@ -32,9 +32,9 @@ LOG = logging.getLogger(__name__) # Environment to run tests DEFAULT_ENV = { 'NOSE_WITH_OPENSTACK': '1', - 'NOSE_OPENSTACK_RED':'0.05', - 'NOSE_OPENSTACK_YELLOW':'0.025', - 'NOSE_OPENSTACK_SHOW_ELAPSED':'1', + 'NOSE_OPENSTACK_RED': '0.05', + 'NOSE_OPENSTACK_YELLOW': '0.025', + 'NOSE_OPENSTACK_SHOW_ELAPSED': '1', } diff --git a/anvil/packaging/helpers/pip_helper.py b/anvil/packaging/helpers/pip_helper.py index c4e8b9f6..148e57a2 100644 --- a/anvil/packaging/helpers/pip_helper.py +++ b/anvil/packaging/helpers/pip_helper.py @@ -31,6 +31,7 @@ FREEZE_CMD = ['freeze', '--local'] EGGS_DETAILED = {} PYTHON_KEY_VERSION_RE = re.compile("^(.+)-([0-9][0-9.a-zA-Z]*)$") + def create_requirement(name, version=None): name = pkg_resources.safe_name(name.strip()) if not name: