From f32e069c1556603c2724b5668855083450c78fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Mar 2012 15:13:08 +0100 Subject: [PATCH] Prevent another storage of long list --- trans/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trans/models.py b/trans/models.py index 2ce09f1fe..bd76fc2ea 100644 --- a/trans/models.py +++ b/trans/models.py @@ -140,9 +140,8 @@ class SubProject(models.Model): tree = repo.tree() # Glob files - files = glob(os.path.join(self.get_path(), self.filemask)) prefix = os.path.join(self.get_path(), '') - for f in files: + for f in glob(os.path.join(self.get_path(), self.filemask)): filename = f.replace(prefix, '') yield ( self.get_lang_code(filename),