Skip to content

Commit a045c45

Browse files
committed
Remove prints and lint warnings
1 parent 812812a commit a045c45

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tools/arm_pack_manager/__init__.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,11 @@ def _get_sectors(self, device):
9292
sectors = [(flash_alg.flash_start + offset, size)
9393
for offset, size in flash_alg.sector_sizes]
9494
ret.extend(sectors)
95-
except Exception as e:
96-
print(e)
97-
print(device)
95+
except Exception:
9896
pass
9997
ret.sort(key=lambda sector: sector[0])
10098
return ret
101-
except Exception as e:
102-
print(e)
99+
except Exception:
103100
return None
104101

105102
@property
@@ -119,11 +116,13 @@ def cache_everything(self):
119116
def get_svd_file(self, device_name):
120117
"""Retrieve the flash algorithm file for a particular part.
121118
122-
Assumes that both the PDSC and the PACK file associated with that part are in the cache.
119+
Assumes that both the PDSC and the PACK file associated with that part
120+
are in the cache.
123121
124122
:param device_name: The exact name of a device
125123
:type device_name: str
126-
:return: A file-like object that, when read, is the ELF file that describes the flashing algorithm
124+
:return: A file-like object that, when read, is the ELF file that
125+
describes the flashing algorithm
127126
:rtype: ZipExtFile
128127
"""
129128
device = self.index[device_name]
@@ -134,4 +133,3 @@ def generate_index(self):
134133
with open(LocalPackIndex, "w+") as out:
135134
self._cache.index["version"] = "0.2.0"
136135
dump(self._cache.index, out, indent=4, sort_keys=True)
137-

0 commit comments

Comments
 (0)