From 06364c1664e3d6a4027a096747ab84e4e6248811 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Fri, 19 Sep 2014 18:12:11 +0100 Subject: Removed debug stuff --- bladictionary.py | 6 +----- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3