Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-02-08 11:47:31 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-02-08 11:47:31 +0400
commit6336810f84a01d3affa7ea236f9ad6affe3e13b7 (patch)
tree6a643a8f9314a842628ada37bd265d1ff1f04678
parent77e2c00d47d1ff14e4e8bb917c65f36e9166e25a (diff)
basestring -> str
-rw-r--r--nbxmpp/tls_nb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nbxmpp/tls_nb.py b/nbxmpp/tls_nb.py
index 6b8c4e6..d37d62e 100644
--- a/nbxmpp/tls_nb.py
+++ b/nbxmpp/tls_nb.py
@@ -70,7 +70,7 @@ class SSLWrapper:
errno = errno or gattr(exc, 'errno') or exc.args[0]
strerror = strerror or gattr(exc, 'strerror') or gattr(exc, 'args')
- if not isinstance(strerror, basestring):
+ if not isinstance(strerror, str):
strerror = repr(strerror)
self.sock = sock
@@ -99,7 +99,7 @@ class SSLWrapper:
if self.peer is None and sock is not None:
try:
ppeer = self.sock.getpeername()
- if len(ppeer) == 2 and isinstance(ppeer[0], basestring) \
+ if len(ppeer) == 2 and isinstance(ppeer[0], str) \
and isinstance(ppeer[1], int):
self.peer = ppeer
except: