From 79375ce4d544a241b6db64e4a266a66fc35e86cb Mon Sep 17 00:00:00 2001 From: Przemyslaw Gajda Date: Mon, 23 Apr 2012 10:21:50 +0200 Subject: Py3k always sets re.U flag, so the resulting regex.flags are equals to flags | re.U. --- mox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mox.py b/mox.py index 4dddf61..cbf73aa 100755 --- a/mox.py +++ b/mox.py @@ -1439,7 +1439,7 @@ class Regex(Comparator): # flags passed to re.compile function as the second argument flags: int """ - + self.flags = flags self.regex = re.compile(pattern, flags=flags) def equals(self, rhs): @@ -1456,8 +1456,8 @@ class Regex(Comparator): def __repr__(self): s = '