Skip to content

Commit

Permalink
Cleaned up command parsing method
Browse files Browse the repository at this point in the history
  • Loading branch information
pipakin committed Mar 17, 2011
1 parent ee8b6af commit e281b7c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions thingdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,9 @@ def __init__(self):
def parseLine(line):
m = re.search("\*\s*\@(\w+)\s(.*)", line)
if(m != None):
ret = { 'Command': m.group(1), 'Arg': m.group(2) }
print ret
return ret
return { 'Command': m.group(1), 'Arg': m.group(2) }
else:
ret = { 'Command': None, 'Arg': None }
return ret
return { 'Command': None, 'Arg': None }

# Going thru directory
for root, dirs, files in os.walk(os.getcwd()):
Expand Down

0 comments on commit e281b7c

Please sign in to comment.