diff options
author | Joe Robinson <joe@mumsnet.com> | 2014-09-19 18:12:11 +0100 |
---|---|---|
committer | Joe Robinson <joe@mumsnet.com> | 2014-09-19 18:12:11 +0100 |
commit | 06364c1664e3d6a4027a096747ab84e4e6248811 (patch) | |
tree | 9b959da26dcafdc99c79a9c3ae7ff5aa0f5211aa | |
parent | 8a5c561a575e9377b69587d03c4406fd0c15b2bd (diff) |
Removed debug stuff
-rwxr-xr-x | bladictionary.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bladictionary.py b/bladictionary.py index 29b007f..69eeb4a 100755 --- a/bladictionary.py +++ b/bladictionary.py @@ -7,7 +7,7 @@ import optparse from lxml import etree import sqlite3 -VERSION = "2.1.5b" +VERSION = "2.1.6b" class Definition(object): #ID is relative to the word type, eg noun 1, noun 2, verb 1, verb 2, not to the entire list @@ -227,7 +227,6 @@ def parse_oed(word): id = 0 definition = "" word_type = "" - print line for part in line.split(" ")[word_len:]: #If we've reached a word type, add the current data to the list @@ -265,10 +264,7 @@ def parse_oed(word): tmp_items = [] simple_types = ["n", "v", "adj", "adv"] for simple_type in simple_types: - print simple_type - for tmp_item in items: - print tmp_item.word_type if tmp_item.word_type == simple_type: tmp_items.append(tmp_item) |