diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2009-01-05 22:02:40 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2009-01-05 22:02:40 +0100 |
| commit | c5923d87f2b087e54b759c920cdbea041e8ab3ba (patch) | |
| tree | 1a8ab901905eaa942ca7952414bd9bc659b71719 /bin/tools/misc.py | |
| parent | 7fdf5188af68dda4e81f82cb348e1c5cdb30797e (diff) | |
[IMP] Use cStringIO
bzr revid: stephane@tinyerp.com-20090105210240-nkg2vm08dwhz2xtq
Diffstat (limited to 'bin/tools/misc.py')
| -rw-r--r-- | bin/tools/misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tools/misc.py b/bin/tools/misc.py index d27191616aa..1803de2ae9d 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -224,10 +224,10 @@ def file_open(name, mode="r", subdir='addons', pathinfo=False): else: zipname = tail if zipfile.is_zipfile(head+'.zip'): - import StringIO + import cStringIO zfile = zipfile.ZipFile(head+'.zip') try: - fo = StringIO.StringIO(zfile.read(os.path.join( + fo = cStringIO.StringIO(zfile.read(os.path.join( os.path.basename(head), zipname).replace( os.sep, '/'))) |
