Skip to content

Commit d0c36e4

Browse files
committed
Merge pull request disqus#9 from vilhelmk/master
Rename session property from conduit to _conduit to avoid conflict.
2 parents 87b9d96 + c69d219 commit d0c36e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phabricator/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def validate_kwarg(key, target):
241241
raise ValueError('Wrong argument type: %s is not a list of %ss' % (key, val[0]))
242242
raise ValueError('Wrong argument type: %s is not a %s' % (key, val))
243243

244-
conduit = self.api.conduit
244+
conduit = self.api._conduit
245245

246246
if conduit:
247247
# Already authenticated, add session key to json data
@@ -254,7 +254,7 @@ def validate_kwarg(key, target):
254254
else:
255255
# Authorization is required, silently auth the user
256256
self.api.connect()
257-
kwargs['__conduit__'] = self.api.conduit
257+
kwargs['__conduit__'] = self.api._conduit
258258

259259
url = urlparse.urlparse(self.api.host)
260260
if url.scheme == 'https':
@@ -319,7 +319,7 @@ def __init__(self, username=None, certificate=None, host=None,
319319
self.client = 'python-phabricator'
320320
self.clientVersion = 1
321321
self.clientDescription = socket.gethostname() + ':python-phabricator'
322-
self.conduit = None
322+
self._conduit = None
323323

324324
super(Phabricator, self).__init__(self)
325325

@@ -338,7 +338,7 @@ def connect(self):
338338
response = auth(user=self.username, host=self.host,
339339
client=self.client, clientVersion=self.clientVersion)
340340

341-
self.conduit = {
341+
self._conduit = {
342342
'sessionKey': response.sessionKey,
343343
'connectionID': response.connectionID
344344
}

0 commit comments

Comments
 (0)