summaryrefslogtreecommitdiff
path: root/exchange/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'exchange/__init__.py')
-rw-r--r--exchange/__init__.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/exchange/__init__.py b/exchange/__init__.py
index a2a78ec..eafb43f 100644
--- a/exchange/__init__.py
+++ b/exchange/__init__.py
@@ -7,6 +7,23 @@ Exchange Server Handling Code
7@date: April 26, 2009 7@date: April 26, 2009
8""" 8"""
9 9
10from datetime import tzinfo, timedelta
11
10 12
11class ExchangeException(Exception): 13class ExchangeException(Exception):
12 "Exception that is thrown by all Exchange handling code." 14 "Exception that is thrown by all Exchange handling code."
15
16
17class AuthenticationException(ExchangeException):
18 "Exception that is raised when authentication fails."
19
20
21class EST(tzinfo):
22
23 def tzname(self, dt):
24 return "EST"
25
26 def utcoffset(self, dt):
27 return timedelta(0)
28
29 dst = utcoffset