gnome-schedule r1072 - in trunk: . src
- From: gauteh svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-schedule r1072 - in trunk: . src
- Date: Wed, 6 Feb 2008 19:36:53 +0000 (GMT)
Author: gauteh
Date: Wed Feb 6 19:36:53 2008
New Revision: 1072
URL: http://svn.gnome.org/viewvc/gnome-schedule?rev=1072&view=rev
Log:
* src/at.py: Removed unused regexps
* src/atEditor.py: Removed debug messages
Modified:
trunk/ChangeLog
trunk/src/at.py
trunk/src/atEditor.py
Modified: trunk/src/at.py
==============================================================================
--- trunk/src/at.py (original)
+++ trunk/src/at.py Wed Feb 6 19:36:53 2008
@@ -45,12 +45,7 @@
# 14 2006-09-21 10:54 a gaute
# 3 Tue May 8 01:01:00 2007 a gaute
- self.atRecordRegex = [
- re.compile('([0-9]+)\s([0-9]4-[0-9]2-[0-9]2)\s([0-9]2:[0-9]2)\s([a]1)\s(.*)'),
- re.compile('([^\s]+)\s((.*)\s(..:..:..\s....)|([^\s]+)\s([^\s]+))\s([^\s]+)\s([^\s]+)'),
- re.compile('([^\s]+)\s([^\s]+)\s([^\s]+)\s([^\s]+)\s([^\s]+)'),
- re.compile('^([\d]+)[\t]([\w]{3,3})[\s]([\w]{3,3})[\s]*([\d]+)[\s]([\d]{2,2}[:][\d]{2,2}[:][\d]{2,2})[\s]([\d]{4,4})[\s]([\w])[\s]([\w]+)')
- ]
+ self.atRecordRegex = re.compile('^([\d]+)[\t]([\w]{3,3})[\s]([\w]{3,3})[\s]*([\d]+)[\s]([\d]{2,2}[:][\d]{2,2}[:][\d]{2,2})[\s]([\d]{4,4})[\s]([\w])[\s]([\w]+)')
# after you add a job, this line is printed to stderr
@@ -99,7 +94,7 @@
def parse (self, line, output = True):
if (output == True):
if len (line) > 1 and line[0] != '#':
- m = self.atRecordRegex[3].match(line)
+ m = self.atRecordRegex.match(line)
if m != None:
# Time
time = m.groups ()[4][:-3]
Modified: trunk/src/atEditor.py
==============================================================================
--- trunk/src/atEditor.py (original)
+++ trunk/src/atEditor.py Wed Feb 6 19:36:53 2008
@@ -530,8 +530,6 @@
self.text_task_buffer.set_text(self.command)
def __parse_time__ (self, time, date):
- print time
- print date
regexp_date = re.compile("([0-9][0-9])\.([0-9][0-9])\.([0-9][0-9][0-9][0-9])")
regexp_time = re.compile("([0-9][0-9]):([0-9][0-9])")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]