Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit 4cf61ad

Browse files
committed
Minor refactoring.
1 parent 13c8852 commit 4cf61ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

slacker/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@ def list(self):
276276

277277

278278
class Presence(BaseAPI):
279-
PRESENCE_AWAY = 'away'
280-
PRESENCE_ACTIVE = 'active'
281-
PRESENCE_TYPES = (PRESENCE_AWAY, PRESENCE_ACTIVE)
279+
AWAY = 'away'
280+
ACTIVE = 'active'
281+
TYPES = (AWAY, ACTIVE)
282282

283283
def set(self, presence):
284-
assert presence in self.PRESENCE_TYPES, 'Invalid presence type'
284+
assert presence in Presence.TYPES, 'Invalid presence type'
285285
return self.post('presence.set', params={'presence': presence})
286286

287287

0 commit comments

Comments
 (0)