summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/transforms/csl.py4
-rw-r--r--python/tests/transform_csl.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_tools/transforms/csl.py b/python/fatcat_tools/transforms/csl.py
index 079e0501..989629ab 100644
--- a/python/fatcat_tools/transforms/csl.py
+++ b/python/fatcat_tools/transforms/csl.py
@@ -14,7 +14,7 @@ from fatcat_client import ApiClient
def contribs_by_role(contribs, role):
ret = [c.copy() for c in contribs if c['role'] == role]
[c.pop('role') for c in ret]
- # XXX:
+ # TODO: some note to self here
[c.pop('literal') for c in ret if 'literal' in c]
if not ret:
return None
@@ -83,7 +83,7 @@ def release_to_csl(entity):
csl = dict(
#id,
#categories
- type=entity.release_type or "article", # XXX: can't be blank
+ type=entity.release_type or "article", # can't be blank
language=entity.language,
#journalAbbreviation
#shortTitle
diff --git a/python/tests/transform_csl.py b/python/tests/transform_csl.py
index 43f7a99d..9601f19b 100644
--- a/python/tests/transform_csl.py
+++ b/python/tests/transform_csl.py
@@ -44,7 +44,7 @@ def test_csl_pubmed_bibtex(crossref_importer):
r = entity_from_json(f.readline(), ReleaseEntity)
csl = release_to_csl(r)
print(citeproc_csl(csl, 'bibtex'))
- # XXX: what's with the '`' in volume?
+ # TODO: what's with the '`' in volume?
assert citeproc_csl(csl, 'bibtex').strip() == """
@article{mędrela-kuder_szymura_2018,
title={Selected anti-health behaviours among women with osteoporosis},