Permalink
Browse files

made allowed protocols a set attribute

  • Loading branch information...
1 parent 256836f commit 0804654e9d4415b7fd68f8aa9fe02594741e4c71 @jeads jeads committed Aug 3, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 dzclient/client.py
View
@@ -141,7 +141,9 @@ def __init__(self, protocol, host, project, oauth_key, oauth_secret, **kw):
self.oauth_key = oauth_key
self.oauth_secret = oauth_secret
- if protocol in set(['http', 'https']):
+ self.protocols = set(['http', 'https'])
+
+ if protocol in self.protocols:
self.protocol = protocol
else:
#Default to https

0 comments on commit 0804654

Please sign in to comment.