laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/27576 ) Change subject: ts_31_102: Avoid pylint false positive ...................................................................... ts_31_102: Avoid pylint false positive This should avoid the following pylint error: ************* Module pySim.ts_31_102 pySim/ts_31_102.py:621:100: E0601: Using variable 'sw' before assignment (used-before-assignment) Change-Id: I0bb9607cdab0e6e3cd17b4d27129a51a607bc0f2 --- M pySim/ts_31_102.py 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py index fec81bf..fa3af75 100644 --- a/pySim/ts_31_102.py +++ b/pySim/ts_31_102.py @@ -609,6 +609,7 @@ should_exist = f.should_exist_for_services(active_services) try: cmd.rs.select_file(f) + sw = None exists = True except SwMatchError as e: sw = str(e) -- To view, visit https://gerrit.osmocom.org/c/pysim/+/27576 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I0bb9607cdab0e6e3cd17b4d27129a51a607bc0f2 Gerrit-Change-Number: 27576 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge@osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-MessageType: merged