Commits

pv committed 8e5d9d7

autosummary: fix typo in a regexp

  • Participants
  • Parent commits 03f9c91

Comments (0)

Files changed (1)

File sphinx/ext/autosummary/__init__.py

 def mangle_signature(sig, max_chars=30):
     """Reformat a function signature to a more compact form."""
     sig = re.sub(r"^\((.*)\)$", r"\1", sig) + ", "
-    r = re.compile(r"(?P<name>[a-zA_Z0-9_*]+)(?P<default>=.*?)?, ")
+    r = re.compile(r"(?P<name>[a-zA-Z0-9_*]+)(?P<default>=.*?)?, ")
     items = r.findall(sig)
 
     args = []