summaryrefslogtreecommitdiffstats
path: root/cobbler/remote.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-10 10:48:38 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-10 10:48:38 -0400
commita985d8584b3b6dfd8c58ecb59c8d0d865ae83ab1 (patch)
tree5625eb77a50a12d60c13c3dd8d6dadee39e80944 /cobbler/remote.py
parent0e8adb75c6d82a83d371745c85f219b8412ceb88 (diff)
downloadthird_party-cobbler-a985d8584b3b6dfd8c58ecb59c8d0d865ae83ab1.tar.gz
third_party-cobbler-a985d8584b3b6dfd8c58ecb59c8d0d865ae83ab1.tar.xz
third_party-cobbler-a985d8584b3b6dfd8c58ecb59c8d0d865ae83ab1.zip
b64encode is not available in Python 2.3
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r--cobbler/remote.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cobbler/remote.py b/cobbler/remote.py
index 1ca2219..6cc16a3 100644
--- a/cobbler/remote.py
+++ b/cobbler/remote.py
@@ -21,7 +21,6 @@ import SimpleXMLRPCServer
from rhpl.translate import _, N_, textdomain, utf8
import xmlrpclib
import logging
-import base64
import ConfigParser
import random
import base64
@@ -333,7 +332,7 @@ class CobblerReadWriteXMLRPCInterface(CobblerXMLRPCInterface):
def __get_random(self,length):
urandom = open("/dev/urandom")
- b64 = base64.b64encode(urandom.read(25))
+ b64 = base64.encodestring(urandom.read(25))
urandom.close()
return b64