Skip to content

Commit

Permalink
Move regex along with _format_version
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Aug 12, 2023
1 parent 3ee3d07 commit ec5a39d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions netkan/netkan/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def sqs_message(


class Ckan:

EPOCH_VERSION_REGEXP = re.compile('^[0-9]+:')

REDISTRIBUTABLE_LICENSES = {
"public-domain",
"Apache", "Apache-1.0", "Apache-2.0",
Expand Down
2 changes: 0 additions & 2 deletions netkan/netkan/mirrorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ class CkanMirror(Ckan):
"Unlicense" : 'https://unlicense.org/UNLICENSE',
}

EPOCH_VERSION_REGEXP = re.compile('^[0-9]+:')

def __init__(self, collection: str, filename: Optional[Union[str, Path]] = None, contents: Optional[str] = None) -> None:
Ckan.__init__(self, filename, contents)
self.collection = collection
Expand Down

0 comments on commit ec5a39d

Please sign in to comment.