Remove several assignments to underscore
Underscore is used with the gettext integration, so remove these otherwise-harmless assignments that are intended as disposal of an unused variable.
This commit is contained in:
parent
70e6814824
commit
6b41e17949
|
@ -42,7 +42,7 @@ def get_core_version():
|
|||
|
||||
version = None
|
||||
for line in shlex.split(content):
|
||||
key, _, value = line.partition("=")
|
||||
key, sep, value = line.partition("=")
|
||||
if key == "ID" and value != "ubuntu-core":
|
||||
return None
|
||||
if key == "VERSION_ID":
|
||||
|
|
|
@ -23,7 +23,7 @@ def lsb_release(path=None, dry_run: bool = False) -> Dict[str, str]:
|
|||
return ret
|
||||
|
||||
for tok in shlex.split(content):
|
||||
k, _, v = tok.partition("=")
|
||||
k, sep, v = tok.partition("=")
|
||||
if not k.startswith("DISTRIB_") or not v:
|
||||
continue
|
||||
ret[k.replace("DISTRIB_", "").lower()] = v
|
||||
|
|
|
@ -163,7 +163,7 @@ class StretchyOverlay(urwid.Widget):
|
|||
if not bottom_c.cols() or not bottom_c.rows():
|
||||
return urwid.CompositeCanvas(bottom_c)
|
||||
|
||||
top_size, _ = self._top_size(size, focus)
|
||||
top_size = self._top_size(size, focus)[0]
|
||||
top_c = self.top_w.render(top_size, focus)
|
||||
top_c = urwid.CompositeCanvas(top_c)
|
||||
left = (size[0] - top_size[0]) // 2
|
||||
|
|
Loading…
Reference in New Issue