mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-13 23:26:08 +03:00
unber.py: work-around pylint reporting (possibly-used-before-assignment)
contrib/unber.py:39:22: E0606: Possibly using variable 'content' before assignment (possibly-used-before-assignment) Change-Id: I725cd5e05e3121c853669eb4bbfe5ba51b79eb75
This commit is contained in:
1 parent
5964bdd5a4
commit
5341bf902f
1 file changed
+3
@@ -35,5 +35,8 @@ if __name__ == '__main__':
|
|||||||
content = f.read()
|
content = f.read()
|
||||||
elif opts.hex:
|
elif opts.hex:
|
||||||
content = h2b(opts.hex)
|
content = h2b(opts.hex)
|
||||||
|
else:
|
||||||
|
# avoid pylint "(possibly-used-before-assignment)" below
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
process_one_level(content, 0)
|
process_one_level(content, 0)
|
||||||
Reference in new issue
Block a user