aboutsummaryrefslogtreecommitdiffstats
path: root/BibTeX.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2016-02-04 21:49:36 -0500
committerThibaut Horel <thibaut.horel@gmail.com>2016-02-04 21:49:36 -0500
commite63154721bf377ec42f1d5de39b74c7d1e1ebb2d (patch)
tree4694f9c84665763e509e0cf09c02f6b94bcc580d /BibTeX.py
parent2f94281f983f86b23f8e5bcdc790fd4e032a0a2d (diff)
downloadanonbib-e63154721bf377ec42f1d5de39b74c7d1e1ebb2d.tar.gz
entries --> fields (possible confusion with Bibtex.entries)
Diffstat (limited to 'BibTeX.py')
-rw-r--r--BibTeX.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BibTeX.py b/BibTeX.py
index 4aee5e6..1cf4db6 100644
--- a/BibTeX.py
+++ b/BibTeX.py
@@ -64,7 +64,7 @@ class BibTeX:
if seen.get(cr.key):
raise ParseError("Circular crossref at %s" % ent.key)
seen[cr.key] = 1
- del ent.entries['crossref']
+ del ent['crossref']
if cr.entryLine < ent.entryLine:
print "Warning: crossref %s used after declaration" % cr.key
@@ -74,7 +74,7 @@ class BibTeX:
print "ERROR: %s defined both in %s and in %s" % (
k, ent.key, cr.key)
else:
- ent.entries[k] = cr.entries[k]
+ ent[k] = cr[k]
ent.resolve()
rk = config.REQUIRE_KEY