martisak / 3gpp-citations

Generate .bib-file for 3GPP specifications
MIT License
62 stars 12 forks source link

Python 3 Support #1

Closed peremen closed 6 years ago

peremen commented 6 years ago

Since all dependencies (openpyxl, bibtexparser, lxml, requests) are already Python 3 compatible, making a one-liner fix will make the script working on both Python 2 and 3.

diff --git a/3gpp-citations.py b/3gpp-citations.py
index 91f6a64..628dfef 100644
--- a/3gpp-citations.py
+++ b/3gpp-citations.py
@@ -71,7 +71,7 @@ for row in ws.iter_rows(row_offset=1):
                     entry['month'] = date[1].strip()
                 break

-    print entry
+    print(entry)
     db.entries.append(entry)

 writer = BibTexWriter()
martisak commented 6 years ago

Done! Thanks a lot for the suggestion!