[pacman-dev] python-2.7 and pacman test-suite
Xavier Chantry
chantry.xavier at gmail.com
Tue Sep 28 11:11:05 EDT 2010
On Tue, Sep 28, 2010 at 4:23 PM, Dan McGee <dpmcgee at gmail.com> wrote:
>
> Xavier, any insight or memory why you did it this way?
>
> commit c465d9e848b19b495259c7021a583c29fba92b44
> Author: Chantry Xavier <shiningxc at gmail.com>
> Date: Thu Apr 17 09:02:11 2008 +0200
>
> pactest : Use tarfile module.
>
>
There was no reason to write it that way, it looks quite stupid, but
it's just the first method I found and it worked.
I found an old mail when I was looking how to replace the 'tar cf *'
call with python tarfile.
os.listdir is actually closer to * than os.walk.
> I looked a bit at using tarfile, my main problem is the *, I am not
> sure this is available in python.
> And I don't know how to emulate it either (all files/dirs in the
> current directory that dont start with . ?)
More information about the pacman-dev
mailing list