From 5341bf902f1e6d1d08d35a541b25332b99104519 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 10 Jun 2024 09:41:50 +0200 Subject: [PATCH] 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 --- contrib/unber.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/unber.py b/contrib/unber.py index 65262e14..6b488b7a 100755 --- a/contrib/unber.py +++ b/contrib/unber.py @@ -35,5 +35,8 @@ if __name__ == '__main__': content = f.read() elif opts.hex: content = h2b(opts.hex) + else: + # avoid pylint "(possibly-used-before-assignment)" below + sys.exit(2) process_one_level(content, 0)