Skip to content

Commit

Permalink
Merge pull request #42 from vikingco/VD-775/timezone-support
Browse files Browse the repository at this point in the history
VD-775: Ensure we get no timezone awareness warnings
  • Loading branch information
Veronica Cuevas committed Dec 7, 2017
2 parents 6213905 + b0885fb commit ab5c1b1
Show file tree
Hide file tree
Showing 14 changed files with 98 additions and 306 deletions.
2 changes: 1 addition & 1 deletion locking/__init__.py
@@ -1 +1 @@
__version__ = '2.0.4'
__version__ = '2.0.5'
32 changes: 16 additions & 16 deletions locking/exceptions.py
Expand Up @@ -3,96 +3,96 @@ class Error(Exception):


class LockError(Error):
'''
"""
Base class for errors arising from attempts to acquire the lock.
>>> try:
... raise LockError
... except Error:
... pass
'''
"""
pass


class LockFailed(LockError):
'''
"""
Lock creation failed for some unknown reason.
>>> try:
... raise LockFailed
... except LockError:
... pass
'''
"""
pass


class AlreadyLocked(LockFailed):
'''
"""
Some other process is locking the object.
>>> try:
... raise AlreadyLocked
... except LockFailed:
... pass
'''
"""
pass


class UnlockError(Error):
'''
"""
Base class for errors arising from attempts to release the lock.
>>> try:
... raise UnlockError
... except Error:
... pass
'''
"""
pass


class NotLocked(UnlockError):
'''
"""
Raised when an attempt is made to unlock an unlocked file.
>>> try:
... raise NotLocked
... except UnlockError:
... pass
'''
"""
pass


class RenewalError(Error):
'''
"""
Base class for errors arising from attempts to renew the lock.
>>> try:
... raise RenewalError
... except Error:
... pass
'''
"""
pass


class NonexistentLock(RenewalError):
'''
"""
Raised when an attempt is made to renew a nonexistent lock.
>>> try:
... raise NonexistentLock
... except RenewalError:
... pass
'''
"""
pass


class Expired(RenewalError):
'''
"""
Raised when an attempt is made to renew an expired lock.
>>> try:
... raise Expired
... except RenewalError:
... pass
'''
"""
pass
29 changes: 0 additions & 29 deletions locking/migrations/0001_initial.py

This file was deleted.

25 changes: 0 additions & 25 deletions locking/migrations/0002_auto_20171004_1309.py

This file was deleted.

20 changes: 0 additions & 20 deletions locking/migrations/0002_rename.py

This file was deleted.

39 changes: 0 additions & 39 deletions locking/migrations/0003_optimize_queries.py

This file was deleted.

25 changes: 0 additions & 25 deletions locking/migrations/0004_auto_20151115_0703.py

This file was deleted.

21 changes: 0 additions & 21 deletions locking/migrations/0004_auto_20160907_0942.py

This file was deleted.

17 changes: 0 additions & 17 deletions locking/migrations/0005_merge_20170504_1024.py

This file was deleted.

20 changes: 0 additions & 20 deletions locking/migrations/0006_auto_20170609_1342.py

This file was deleted.

20 changes: 0 additions & 20 deletions locking/migrations/0007_auto_20171004_0900.py

This file was deleted.

0 comments on commit ab5c1b1

Please sign in to comment.