Commit e4149db7 authored by Gaute Hope's avatar Gaute Hope
Browse files

Removed unused regexps Removed debug messages

* src/at.py: Removed unused regexps
* src/atEditor.py: Removed debug messages

svn path=/trunk/; revision=1072
parent ed2a7c1b
......@@ -2,6 +2,8 @@
* The append and update code in at.py has been updated for the POSIXLY_CORRECT formatted date/time format, and everything should be working again
* All code depending on the 'locale' module has been removed and it is no longer imported.
* src/at.py: Removed unused regexps
* src/atEditor.py: Removed debug messages
2008-02-05 Gaute Hope <eg@gaute.vetsj.com>
......
......@@ -45,12 +45,7 @@ class At:
# 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 @@ class At:
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]
......
......@@ -530,8 +530,6 @@ class AtEditor:
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])")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment