Skip to content

Commit

Permalink
Undo LGTM changes to due.py and _version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Jun 8, 2021
1 parent 7efcb32 commit da1073f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dandi/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def get_versions():
# versionfile_source is the relative path from the top of the source
# tree (where the .git directory might live) to this file. Invert
# this to find the root from __file__.
for _ in cfg.versionfile_source.split('/'):
for i in cfg.versionfile_source.split('/'):
root = os.path.dirname(root)
except NameError:
return {"version": "0+unknown", "full-revisionid": None,
Expand Down
4 changes: 2 additions & 2 deletions dandi/due.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _donothing_func(*args, **kwargs):


try:
from duecredit import due, Doi # lgtm [py/unused-import]
from duecredit import due, BibTeX, Doi, Url, Text

if "due" in locals() and not hasattr(due, "cite"):
raise RuntimeError("Imported due lacks .cite. DueCredit is now disabled")
Expand All @@ -68,7 +68,7 @@ def _donothing_func(*args, **kwargs):
)
# Initiate due stub
due = InactiveDueCreditCollector()
Doi = _donothing_func
BibTeX = Doi = Url = Text = _donothing_func

# Emacs mode definitions
# Local Variables:
Expand Down

0 comments on commit da1073f

Please sign in to comment.