[game-data-packager] 02/05: GameDataPackage: don't re-use path variable for two purposes

Simon McVittie smcv at debian.org
Sat Jan 3 16:21:07 UTC 2015


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

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

commit fc2ca9c1312b5164f0f37563c4a40a4655a6eab2
Author: Simon McVittie <smcv at debian.org>
Date:   Sat Jan 3 13:42:51 2015 +0000

    GameDataPackage: don't re-use path variable for two purposes
---
 lib/game_data_packager/__init__.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 7fc0f96..23ba75e 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -492,8 +492,7 @@ class GameDataPackage(object):
         elif os.path.isdir(path):
             for dirpath, dirnames, filenames in os.walk(path):
                 for fn in filenames:
-                    path = os.path.join(dirpath, fn)
-                    self.consider_file(path, False)
+                    self.consider_file(os.path.join(dirpath, fn), False)
         else:
             logger.warning('file "%s" does not exist or is not a file or ' +
                     'directory', 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