[game-data-packager] 01/01: iter_fat_mounts(): don't redefine reserved word

Alexandre Detiste detiste-guest at moszumanska.debian.org
Fri Nov 6 10:20:57 UTC 2015


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

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 939a4c8b7e3e46dc2d71feb04ee32112e9511b17
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Fri Nov 6 11:20:25 2015 +0100

    iter_fat_mounts(): don't redefine reserved word
---
 game_data_packager/build.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 9e33798..4f84004 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -327,8 +327,8 @@ def choose_mirror(wanted):
 def iter_fat_mounts(folder):
     with open('/proc/mounts', 'r', encoding='utf8') as mounts:
         for line in mounts.readlines():
-            mount, type = line.split(' ')[1:3]
-            if type in ('fat', 'vfat', 'ntfs'):
+            mount, vfstype = line.split(' ')[1:3]
+            if vfstype in ('fat', 'vfat', 'ntfs'):
                 path = os.path.join(mount, 'Program Files', folder)
                 if os.path.isdir(path):
                     yield path

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list