summaryrefslogtreecommitdiffstats
path: root/module/remote/RequestHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/RequestHandler.py')
-rw-r--r--module/remote/RequestHandler.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/module/remote/RequestHandler.py b/module/remote/RequestHandler.py
index 2f6f248bd..9ded5d02e 100644
--- a/module/remote/RequestHandler.py
+++ b/module/remote/RequestHandler.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
+# -*- coding: utf-8 -*-
"""
authored by: RaNaN
@@ -31,7 +31,7 @@ class RequestHandler:
obj.response = func( * obj.args)
else:
obj.response = "error happend"
-
+
return self.encrypt(obj)
@@ -39,7 +39,7 @@ class RequestHandler:
try:
dec_str = base64.standard_b64decode(dec_str)
dec_str = self.bf.decrypt(dec_str)
-
+
dec_str = dec_str[:-(int(dec_str[-1], 16) + 1)]
obj = cPickle.loads(dec_str)
except:
@@ -60,7 +60,4 @@ class RequestHandler:
enc_str = self.bf.encrypt(enc_str)
enc_str = base64.standard_b64encode(enc_str)
- return enc_str + "\n"
-
-
-
+ return enc_str + "\n" \ No newline at end of file