Skip to content

Commit

Permalink
[client rework]: Disable undefined-loop-variable checks
Browse files Browse the repository at this point in the history
Temporary disable (inline) undefined-loop-variable pylint
checks until the download functionality is revised (theupdateframework#1307)

Signed-off-by: Teodora Sechkova <[email protected]>
  • Loading branch information
sechkova committed Mar 23, 2021
1 parent d88f9e5 commit 0172753
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tuf/client_rework/updater_rework.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _load_root(self) -> None:
try:
verified_root.expires()
except tuf.exceptions.ExpiredMetadataError:
temp_obj.close()
temp_obj.close() # pylint: disable=undefined-loop-variable

# 1.9. If the timestamp and / or snapshot keys have been rotated,
# then delete the trusted timestamp and snapshot metadata files.
Expand Down Expand Up @@ -328,7 +328,7 @@ def _load_root(self) -> None:
"root"
].signed.consistent_snapshot

temp_obj.close()
temp_obj.close() # pylint: disable=undefined-loop-variable

def _load_timestamp(self) -> None:
"""
Expand All @@ -353,7 +353,7 @@ def _load_timestamp(self) -> None:
self._get_full_meta_name("timestamp.json")
)

temp_obj.close()
temp_obj.close() # pylint: disable=undefined-loop-variable

def _load_snapshot(self) -> None:
"""
Expand Down Expand Up @@ -388,7 +388,7 @@ def _load_snapshot(self) -> None:
self._get_full_meta_name("snapshot.json")
)

temp_obj.close()
temp_obj.close() # pylint: disable=undefined-loop-variable

def _load_targets(self, targets_role: str, parent_role: str) -> None:
"""
Expand Down Expand Up @@ -427,7 +427,7 @@ def _load_targets(self, targets_role: str, parent_role: str) -> None:
self._get_full_meta_name(targets_role, extension=".json")
)

temp_obj.close()
temp_obj.close() # pylint: disable=undefined-loop-variable

def _verify_root(self, temp_obj: TextIO) -> RootWrapper:
"""
Expand Down

0 comments on commit 0172753

Please sign in to comment.