[Piuparts-commits] [piuparts] 01/03: make map stmts. py3 compatible

Holger Levsen holger at moszumanska.debian.org
Fri May 1 10:56:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 5fc120867a0572bb8e9d464b3a8a98b8b77ad6c7
Author: Börni <boerni at gmail.com>
Date:   Tue Apr 28 16:39:10 2015 +0200

    make map stmts. py3 compatible
---
 piuparts.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/piuparts.py b/piuparts.py
index 53c2477..23dc30d 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1829,7 +1829,7 @@ class VirtServ(Chroot):
         self._execute(['chmod', ('0%o' % mode), self._tbpath(path)])
 
     def remove_files(self, paths):
-        self._execute(['rm', '--'] + map(self._tbpath, paths))
+        self._execute(['rm', '--'] + list(map(self._tbpath, paths)))
 
     def copy_file(self, our_src, tb_dest):
         self._command(['copydown', (our_src,),
@@ -1888,7 +1888,7 @@ class VirtServ(Chroot):
 
                 st = VirtServ.DummyStat()
                 st.st_mode = mode_map[splut[0]] | int(splut[1], 8)
-                (st.st_uid, st.st_gid, st.st_size) = map(int, splut[2:5])
+                (st.st_uid, st.st_gid, st.st_size) = list(map(int, splut[2:5]))
 
                 vdict[splut[5]] = (st, splut[6])
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list