mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix a typo in tidy.py
This commit is contained in:
parent
8ba26228e1
commit
0c2ccc8914
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ def check_flake8(file_name, contents):
|
|||
|
||||
def check_lock(file_name, contents):
|
||||
def find_reverse_dependencies(name, content):
|
||||
for package in itertools.chain([content.get("root", [])], content["package"]):
|
||||
for package in itertools.chain([content.get("root", {})], content["package"]):
|
||||
for dependency in package.get("dependencies", []):
|
||||
if dependency.startswith("{} ".format(name)):
|
||||
yield package["name"], dependency
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue