Update sphinx links to anonymous references to work around a warning
[pyutils.git] / src / pyutils / string_utils.py
index dbe3c1f1c4fd43aa487118201dc184f450671f5a..d397ad8e0b306c9494168cf859b2855ab0604045 100644 (file)
@@ -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>`_
+<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('-', ' ')