Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: third_party/twisted_8_1/twisted/words/im/locals.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
2 # See LICENSE for details.
3
4
5 class Enum:
6 group = None
7
8 def __init__(self, label):
9 self.label = label
10
11 def __repr__(self):
12 return '<%s: %s>' % (self.group, self.label)
13
14 def __str__(self):
15 return self.label
16
17
18 class StatusEnum(Enum):
19 group = 'Status'
20
21 OFFLINE = Enum('Offline')
22 ONLINE = Enum('Online')
23 AWAY = Enum('Away')
24
25 class OfflineError(Exception):
26 """The requested action can't happen while offline."""
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/words/im/jychat.py ('k') | third_party/twisted_8_1/twisted/words/im/pbsupport.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698