One function
getnames in sciunto-org/python-bibtexparser
The author described this change as “getname: fix broken test”. It counts as a record because the check below fails on the code as it stood at e3492cc16 and passes on 09289d77e, with nothing else changed between the two runs.
Fix saved2013-09-29
Sharing licenceMIT · LICENSE
Change size+2 −2
What the code was meant to do, written into the code itself as a docstring
Make people names as surname, firstnames or surname, initials. Should eventually combine up the two. :param names: a list of names :type names: list :returns: list -- Correctly formated names
The change
| 14 | 14 | if ',' in namestring: | |
| 15 | 15 | namesplit = namestring.split(',', 1) | |
| 16 | 16 | last = namesplit[0].strip() | |
| 17 | - | firsts = [i.strip().strip('.') for i in namesplit[1].split()] | |
| 17 | + | firsts = [i.strip() for i in namesplit[1].split()] | |
| 18 | 18 | else: | |
| 19 | 19 | namesplit = namestring.split() | |
| 20 | 20 | last = namesplit.pop() | |
| 21 | - | firsts = [i.replace('.', ' ').strip() for i in namesplit] | |
| 21 | + | firsts = [i.replace('.', '. ').strip() for i in namesplit] | |
| 22 | 22 | if last in ['jnr', 'jr', 'junior']: | |
| 23 | 23 | last = firsts.pop() | |
| 24 | 24 | for item in firsts: |
The check that tells the two apart
fail→pass·bibtexparser/tests/test_bibtexparser.py::TestBibtexParserList::test_book_cust
Check file bibtexparser/tests/test_bibtexparser.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before ite3492cc16e1a50a450e40c102c44dea739d11fd8
Broken version dated2013-09-29
Modulebibtexparser.customization
Units changedgetnames
Fingerprint847cca6f5894a59e
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in sciunto-org/python-bibtexparser
- 2014-04-26homogeneize_latex_encoding
- 2013-11-11keyword