Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make import at module level #314

Merged
merged 1 commit into from
Jun 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions impl/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import re

# import ezidapp.models.validation
import ezidapp.models.validation
import impl.datacite
import impl.erc
import impl.util
Expand Down Expand Up @@ -52,8 +52,8 @@ def __init__(
def validatedDate(self):
if self.date is not None:
try:
import ezidapp.models.validation

#2022-06-22 Not clear why this import was within the method instead of module level
#import ezidapp.models.validation
return ezidapp.models.validation.publicationDate(self.date)
except Exception:
return None
Expand Down