summaryrefslogtreecommitdiffstats
path: root/Demo/pdist/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/pdist/client.py')
-rwxr-xr-xDemo/pdist/client.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/pdist/client.py b/Demo/pdist/client.py
index 3e97d84..664c41b 100755
--- a/Demo/pdist/client.py
+++ b/Demo/pdist/client.py
@@ -132,12 +132,11 @@ from security import Security
class SecureClient(Client, Security):
def __init__(self, *args):
- import string
- apply(self._pre_init, args)
+ self._pre_init(*args)
Security.__init__(self)
self._wf.flush()
line = self._rf.readline()
- challenge = string.atoi(string.strip(line))
+ challenge = int(line.strip())
response = self._encode_challenge(challenge)
line = repr(long(response))
if line[-1] in 'Ll': line = line[:-1]