Change in pysim[master]: filesystem: case insensitive select.

laforge gerrit-no-reply at lists.osmocom.org
Wed Mar 3 07:51:43 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/23205 )


Change subject: filesystem: case insensitive select.
......................................................................

filesystem: case insensitive select.

It makes sense to have a case insensitive select since for example 6f20
and 6F20 or ef.adn and EF.ADN are actually the same.

Change-Id: Ibe283a108ddc9058af77c823b7222db555e1e0f6
Related: OS#4963
---
M pySim/filesystem.py
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/05/23205/1

diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index a9f2318..7d4a8f8 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -580,6 +580,8 @@
     def select(self, name, cmd_app=None):
         """Change current directory"""
         sels = self.selected_file.get_selectables()
+        sels = {k.upper(): v for k, v in sels.items()}
+        name = name.upper()
         if name in sels:
             f = sels[name]
             # unregister commands of old file

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23205
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ibe283a108ddc9058af77c823b7222db555e1e0f6
Gerrit-Change-Number: 23205
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210303/fbd0e3f9/attachment.htm>


More information about the gerrit-log mailing list