diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py
index 05eb343ea489556ce96deee75a98844344336d73..954b2d1296e8ad6094304a4c3551c63ccb04a82a 100755
--- a/product/ERP5Subversion/Tool/SubversionTool.py
+++ b/product/ERP5Subversion/Tool/SubversionTool.py
@@ -36,10 +36,14 @@ from zLOG import LOG, WARNING, INFO
 from Products.ERP5Subversion.SubversionClient import newSubversionClient
 import os
 from DateTime import DateTime
-from base64 import b64encode, b64decode
 from cPickle import dumps, loads
 from App.config import getConfiguration
 from zExceptions import Unauthorized
+
+try:
+  from base64 import b64encode, b64decode
+except ImportError:
+  from base64 import encode, decode
  
 class SubversionTool(UniqueObject, Folder):
   """The SubversionTool provides a Subversion interface to ERP5.