updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / time-drive / timedrive-validate_typo.diff
blob8c6719ad182d2a054a39cab9a712169e186eae99
1 diff -r 833ce4f1009a -r f91d4163da69 timedrive/settingsdialog.py
2 --- a/timedrive/settingsdialog.py Tue Jul 12 08:24:03 2011 -0700
3 +++ b/timedrive/settingsdialog.py Tue Jul 12 08:01:08 2011 -0700
4 @@ -65,15 +65,11 @@
5 if excludePattern == None:
6 return e
8 - if not self._Validate.check(self._Validate.REGEX, excludePattern):
9 + if not self._Validate.check(self.Validate.REGEX, excludePattern):
10 QtGui.QMessageBox.warning(self, _("Invalid"), _("Invalid regular expressions"))
12 e = excludeitem.ExcludeItem(excludePattern, excludeType)
13 except:
14 - import traceback, sys
15 - tp, val, tb = sys.exc_info()
16 - traceback.print_exception(tp,val,tb)
18 QtGui.QMessageBox.warning(self, _("Exception"), _("Error regular expressions"))
20 elif excludeType == excludeitem.ExcludeItem.FOLDER:
21 @@ -81,4 +77,4 @@
22 elif excludeType == excludeitem.ExcludeItem.FILE:
23 e = excludeitem.ExcludeItem(excludePattern, excludeType)
25 - return e
26 + return e
27 \ No newline at end of file