mirror of https://github.com/tLDP/python-tldp
pyflakes/pep8 adjustments
This commit is contained in:
parent
dec201f50c
commit
53c476cebc
|
@ -71,8 +71,7 @@ class Inventory(object):
|
|||
len(self.orphan),
|
||||
len(self.new),
|
||||
len(self.stale),
|
||||
len(self.broken),
|
||||
)
|
||||
len(self.broken),)
|
||||
|
||||
def __init__(self, pubdir, sourcedirs):
|
||||
'''construct an Inventory
|
||||
|
|
|
@ -284,6 +284,7 @@ def md5files(name, relative=None):
|
|||
'''get all of the MD5s for files from here downtree'''
|
||||
return fileinfo(name, relative=relative, func=md5file)
|
||||
|
||||
|
||||
def statfiles(name, relative=None):
|
||||
'''
|
||||
>>> statfiles('./docs/x509').keys()
|
||||
|
@ -295,6 +296,7 @@ def statfiles(name, relative=None):
|
|||
'''
|
||||
return fileinfo(name, relative=relative, func=statfile)
|
||||
|
||||
|
||||
def fileinfo(name, relative=None, func=statfile):
|
||||
'''return a dict() with keys being filenames and posix.stat_result values
|
||||
|
||||
|
|
Loading…
Reference in New Issue