Browse Source

deep refactoring ID2TLib/PcapFile.py

Jens Keim 6 years ago
parent
commit
4308976a10
1 changed files with 3 additions and 3 deletions
  1. 3 3
      code/ID2TLib/PcapFile.py

+ 3 - 3
code/ID2TLib/PcapFile.py

@@ -75,16 +75,16 @@ class PcapFile(object):
         :return: The full path to the database file
         """
 
-        def hashcode(input: str):
+        def hashcode(string_in: str):
             """
             Creates a hashcode of a string, based on Java's hashcode implementation.
             Code based on: http://garage.pimentech.net/libcommonPython_src_python_libcommon_javastringhashcode/
 
-            :param input: The string the hashcode should be calculated from
+            :param string_in: The string the hashcode should be calculated from
             :return: The hashcode as string
             """
             h = 0
-            for c in input:
+            for c in string_in:
                 h = (31 * h + ord(c)) & 0xFFFFFFFF
             return ((h + 0x80000000) & 0xFFFFFFFF) - 0x80000000