A few pep8 cleanups.

Change-Id: Ic5a7f3f24c1312e3b48e380457729791ea9eab03
This commit is contained in:
Joshua Harlow 2013-06-30 17:50:33 -07:00
parent 3929d1b939
commit 72dd8e0089
2 changed files with 4 additions and 3 deletions

View File

@ -32,9 +32,9 @@ LOG = logging.getLogger(__name__)
# Environment to run tests # Environment to run tests
DEFAULT_ENV = { DEFAULT_ENV = {
'NOSE_WITH_OPENSTACK': '1', 'NOSE_WITH_OPENSTACK': '1',
'NOSE_OPENSTACK_RED':'0.05', 'NOSE_OPENSTACK_RED': '0.05',
'NOSE_OPENSTACK_YELLOW':'0.025', 'NOSE_OPENSTACK_YELLOW': '0.025',
'NOSE_OPENSTACK_SHOW_ELAPSED':'1', 'NOSE_OPENSTACK_SHOW_ELAPSED': '1',
} }

View File

@ -31,6 +31,7 @@ FREEZE_CMD = ['freeze', '--local']
EGGS_DETAILED = {} EGGS_DETAILED = {}
PYTHON_KEY_VERSION_RE = re.compile("^(.+)-([0-9][0-9.a-zA-Z]*)$") PYTHON_KEY_VERSION_RE = re.compile("^(.+)-([0-9][0-9.a-zA-Z]*)$")
def create_requirement(name, version=None): def create_requirement(name, version=None):
name = pkg_resources.safe_name(name.strip()) name = pkg_resources.safe_name(name.strip())
if not name: if not name: