mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
pep8: Add compliance with rule E261 to hash_reqs.py.
This commit is contained in:
committed by
Tim Abbott
parent
b677689fea
commit
b3ad6a6d77
@@ -18,12 +18,12 @@ def expand_reqs_helper(fpath, visited):
|
|||||||
visited.add(fpath)
|
visited.add(fpath)
|
||||||
|
|
||||||
curr_dir = os.path.dirname(fpath)
|
curr_dir = os.path.dirname(fpath)
|
||||||
result = [] # type: List[str]
|
result = [] # type: List[str]
|
||||||
|
|
||||||
for line in open(fpath):
|
for line in open(fpath):
|
||||||
if line.startswith('#'):
|
if line.startswith('#'):
|
||||||
continue
|
continue
|
||||||
dep = line.split(" #", 1)[0].strip() # remove comments and strip whitespace
|
dep = line.split(" #", 1)[0].strip() # remove comments and strip whitespace
|
||||||
if dep:
|
if dep:
|
||||||
if dep.startswith('-r'):
|
if dep.startswith('-r'):
|
||||||
child = os.path.join(curr_dir, dep[3:])
|
child = os.path.join(curr_dir, dep[3:])
|
||||||
|
|||||||
Reference in New Issue
Block a user