[meld] Bug 580444 – Many patterns in "File filters" leads to assertion (Guilhem Bichot)



commit a1ff1dc70ce9ca201e8f8d01648abce88e5e10d3
Author: Stephen Kennedy <stevek gnome org>
Date:   Sat May 9 22:57:36 2009 +0100

    Bug 580444 â?? Many patterns in "File filters" leads to assertion (Guilhem Bichot)
---
 dirdiff.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dirdiff.py b/dirdiff.py
index 09c1e83..59251f9 100644
--- a/dirdiff.py
+++ b/dirdiff.py
@@ -276,7 +276,7 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
         for f in [misc.ListItem(s) for s in self.prefs.filters.split("\n") ]:
             bits = f.value.split()
             if len(bits) > 1:
-                regex = "(%s)$" % ")|(".join( [misc.shell_to_regex(b)[:-1] for b in bits] )
+                regex = "(%s)$" % "|".join( [misc.shell_to_regex(b)[:-1] for b in bits] )
             elif len(bits):
                 regex = misc.shell_to_regex(bits[0])
             else: # an empty pattern would match anything, skip it



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]