summaryrefslogtreecommitdiffstats
path: root/pyload/remote/thriftbackend/Protocol.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-17 01:07:33 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-17 01:07:33 +0200
commit730b160e28d711fad96e6a61070e374ad0966566 (patch)
treefe3f8cf4161de8f93cddf29ea49464b493083e2b /pyload/remote/thriftbackend/Protocol.py
parentSpare code cosmetics (1) (diff)
downloadpyload-730b160e28d711fad96e6a61070e374ad0966566.tar.xz
Spare code cosmetics (2)
Diffstat (limited to 'pyload/remote/thriftbackend/Protocol.py')
-rw-r--r--pyload/remote/thriftbackend/Protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/remote/thriftbackend/Protocol.py b/pyload/remote/thriftbackend/Protocol.py
index c020e7a23..cc5352d40 100644
--- a/pyload/remote/thriftbackend/Protocol.py
+++ b/pyload/remote/thriftbackend/Protocol.py
@@ -2,12 +2,13 @@
from thrift.protocol import TBinaryProtocol
+
class Protocol(TBinaryProtocol.TBinaryProtocol):
def writeString(self, str):
try:
str = str.encode("utf8", "ignore")
- except Exception, e:
+ except Exception:
pass
self.writeI32(len(str))
@@ -26,7 +27,6 @@ class Protocol(TBinaryProtocol.TBinaryProtocol):
class ProtocolFactory(TBinaryProtocol.TBinaryProtocolFactory):
-
def getProtocol(self, trans):
prot = Protocol(trans, self.strictRead, self.strictWrite)
return prot