tarfile on Python 2.6 is good and fixes failures

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31805 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f2a80c72
......@@ -129,3 +129,10 @@ allow_module('Products.ERP5Type.Log')
allow_module('Products.ERP5Type.ConnectionPlugin.SOAPWSDLConnection')
ModuleSecurityInfo('Products.ERP5Type.JSON').declarePublic('dumps', 'loads')
ModuleSecurityInfo('pprint').declarePublic('pformat', 'pprint')
if sys.version_info[0:2] == (2, 4):
# Use our own tarfile if we got the buggy Python 2.4 version
# BACK: drop once we remove support for Python 2.4
import _tarfile as tarfile
else:
import tarfile
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment