src/eric7/HexEdit/HexEditSearchReplaceWidget.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 10190
dbe6394786ea
child 10439
21c28b0f9e41
--- a/src/eric7/HexEdit/HexEditSearchReplaceWidget.py	Sun Dec 03 16:44:52 2023 +0100
+++ b/src/eric7/HexEdit/HexEditSearchReplaceWidget.py	Sun Dec 03 19:46:34 2023 +0100
@@ -577,7 +577,7 @@
         @exception ValueError raised to indicate an invalid dataFormat
             parameter
         """
-        if dataFormat not in self.__formatAndValidators.keys():
+        if dataFormat not in self.__formatAndValidators:
             raise ValueError("Bad value for 'dataFormat' parameter.")
 
         if dataFormat == "hex":  # hex format
@@ -608,7 +608,7 @@
         @exception ValueError raised to indicate an invalid dataFormat
             parameter
         """
-        if dataFormat not in self.__formatAndValidators.keys():
+        if dataFormat not in self.__formatAndValidators:
             raise ValueError("Bad value for 'dataFormat' parameter.")
 
         if dataFormat == "hex":  # hex format

eric ide

mercurial