Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
refactor: move MAX_EXPIRY out of __init__
Browse files Browse the repository at this point in the history
to avoid potential conflicts when merging changes to __version__
  • Loading branch information
pjenvey committed Nov 20, 2017
1 parent 3606763 commit 9c1ca6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions autopush/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
__version__ = '1.39.0' # pragma: nocover

# Max DynamoDB record lifespan (~ 30 days)
MAX_EXPIRY = 2592000 # pragma: nocover
4 changes: 3 additions & 1 deletion autopush/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
from twisted.internet.threads import deferToThread

import autopush.metrics
from autopush import MAX_EXPIRY
from autopush.exceptions import AutopushException
from autopush.metrics import IMetrics # noqa
from autopush.types import ItemLike # noqa
Expand All @@ -87,6 +86,9 @@
from autopush.config import AutopushConfig, DDBTableConfig # noqa


# Max DynamoDB record lifespan (~ 30 days)
MAX_EXPIRY = 2592000 # pragma: nocover

# Typing
T = TypeVar('T') # noqa

Expand Down

0 comments on commit 9c1ca6c

Please sign in to comment.