aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BibTeX.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/BibTeX.py b/BibTeX.py
index 739fad6..41843bc 100644
--- a/BibTeX.py
+++ b/BibTeX.py
@@ -860,7 +860,15 @@ class FileIter:
self.lineno += 1
return self._next()
+
def parseAuthor(s):
+ try:
+ return _parseAuthor(s)
+ except:
+ print >>sys.stderr, "Internal error while parsing author %r"%s
+ raise
+
+def _parseAuthor(s):
"""Take an author string and return a list of ParsedAuthor."""
items = []