Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing whitespace. #634

Merged
merged 1 commit into from Jul 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setuptools/archive_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UnrecognizedFormat(DistutilsError):
"""Couldn't recognize the archive type"""


def default_filter(src,dst):
def default_filter(src, dst):
"""The default progress/filter callback; returns True for all files"""
return dst

Expand Down
12 changes: 6 additions & 6 deletions setuptools/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, name, requested_version, module, homepage='',
def full_name(self):
"""Return full package/distribution name, w/version"""
if self.requested_version is not None:
return '%s-%s' % (self.name,self.requested_version)
return '%s-%s' % (self.name, self.requested_version)
return self.name

def version_ok(self, version):
Expand All @@ -52,7 +52,7 @@ def get_version(self, paths=None, default="unknown"):

if self.attribute is None:
try:
f,p,i = find_module(self.module,paths)
f, p, i = find_module(self.module, paths)
if f: f.close()
return default
except ImportError:
Expand Down Expand Up @@ -83,7 +83,7 @@ def _iter_code(code):
from array import array
from dis import HAVE_ARGUMENT, EXTENDED_ARG

bytes = array('b',code.co_code)
bytes = array('b', code.co_code)
eof = len(code.co_code)

ptr = 0
Expand All @@ -107,7 +107,7 @@ def _iter_code(code):
arg = None
ptr += 1

yield op,arg
yield op, arg


def find_module(module, paths=None):
Expand All @@ -117,14 +117,14 @@ def find_module(module, paths=None):

while parts:
part = parts.pop(0)
f, path, (suffix,mode,kind) = info = imp.find_module(part, paths)
f, path, (suffix, mode, kind) = info = imp.find_module(part, paths)

if kind==PKG_DIRECTORY:
parts = parts or ['__init__']
paths = [path]

elif parts:
raise ImportError("Can't find %r in %s" % (parts,module))
raise ImportError("Can't find %r in %s" % (parts, module))

return info

Expand Down
Loading