Python is not C: get rid of unnecessary semicolons
See https://www.python.org/dev/peps/pep-0008/.
Change-Id: I9de3bcd324b0a1b98af761678996eaae85f7f790
Related: OS#5292
diff --git a/pySim-shell.py b/pySim-shell.py
index 3fc5859..0be6f21 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -72,15 +72,15 @@
sl.wait_for_card(3)
except NoCardError:
print("No card detected!")
- return None, None;
+ return None, None
except:
print("Card not readable!")
- return None, None;
+ return None, None
card = card_detect("auto", scc)
if card is None:
print("Could not detect card type!")
- return None, None;
+ return None, None
# Create runtime state with card profile
profile = CardProfileUICC()
@@ -207,7 +207,7 @@
@cmd2.with_category(CUSTOM_CATEGORY)
def do_equip(self, opts):
"""Equip pySim-shell with card"""
- rs, card = init_card(sl);
+ rs, card = init_card(sl)
self.equip(card, rs)
class InterceptStderr(list):
@@ -352,7 +352,7 @@
except (KeyboardInterrupt):
self.poutput("")
self.poutput("Terminated by user!")
- return;
+ return
except (SystemExit):
# When all cards are processed the card handler device will throw a SystemExit
# exception. Also Errors that are not recoverable (cards stuck etc.) will end up here.