Skip to content

Commit beedf34

Browse files
committed
Make linter happy
1 parent 0533973 commit beedf34

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.cspell.json

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"eprint",
3434
"eprinttype",
3535
"howpublished",
36+
"inbook",
37+
"incollection",
3638
"mingsheng",
3739
"numpages",
3840
"quantumpl",

bibtex-compatibility.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
new_db = open("bibtex.bib","w")
2727

2828
for line in old_db.readlines():
29-
date_pattern = re.search("date.*{(\d+)-?(\d+)?.*}",line)
29+
date_pattern = re.search(r"date.*{(\d+)-?(\d+)?.*}",line)
3030
if date_pattern:
3131
new_db.write(" year = {{{0:s}}},\n".format(date_pattern.group(1)))
3232
# print " year = {{{0:s}}},\n".format(date_pattern.group(1)),
33-
if date_pattern.group(2) != None:
33+
if date_pattern.group(2) is not None:
3434
month = month_names[int(date_pattern.group(2))];
3535
new_db.write(" month = {},\n".format(month))
3636
elif re.search("journaltitle",line):

0 commit comments

Comments
 (0)