[MERGE] Bugfix #68124: Allow import plugins from zip archives
Alexander Belchenko
bialix at ukr.net
Tue Jan 2 15:32:07 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley пишет:
> Alexander Belchenko wrote:
>> No. Inside zip always used '/'.
>
> So then doing os.path.split is incorrect, because it depends on os.sep,
> right?
Actually, no:
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 'a\\b\\c'
>>> b = 'a/b/c'
>>> import os
>>> os.path.split(a)
('a\\b', 'c')
>>> os.path.split(b)
('a/b', 'c')
>>>
As you could see this function don't depends on os.sep.
Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFmnr3zYr338mxwCURAnXdAJ4y/KvKfNZ3RyiuobEsmQBfbc5xpgCfZ7nL
ptcH4RPqvr9M9DbgtoEujQw=
=mo6y
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list