X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=src%2Fpyutils%2Fstring_utils.py;h=81411be8d51e7aa4c29a258ed1adc3472fc466d5;hb=278d163705facc2276cd464414fb490ef6af50ab;hp=dbe3c1f1c4fd43aa487118201dc184f450671f5a;hpb=b38920f24d1ac948958480c540bc4b8436186765;p=pyutils.git diff --git a/src/pyutils/string_utils.py b/src/pyutils/string_utils.py index dbe3c1f..81411be 100644 --- a/src/pyutils/string_utils.py +++ b/src/pyutils/string_utils.py @@ -27,7 +27,7 @@ SOFTWARE. This class is based on: https://github.com/daveoncode/python-string-utils. See `NOTICE -<[https://wannabe.guru.org/gitweb/?p=pyutils.git;a=blob_plain;f=NOTICE;hb=HEAD>`_ +`_ in the root of this module for a detailed enumeration of what work is Davide's and what work was added by Scott. @@ -569,7 +569,7 @@ def number_string_to_integer(in_str: str) -> int: ValueError: Unknown word: xyzzy """ if type(in_str) == int: - return in_str + return int(in_str) current = result = 0 in_str = in_str.replace('-', ' ')