Skip to content

Commit

Permalink
fixed bug that caused downloader to fail when tkinter is not installed
Browse files Browse the repository at this point in the history
svn/trunk@7331
  • Loading branch information
Edward Loper committed Dec 18, 2008
1 parent d0cdc44 commit 1e13e88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nltk/downloader.py
Expand Up @@ -167,6 +167,8 @@
TKINTER = True
from Tkinter import *
from tkMessageBox import *
from nltk.draw.table import Table
from nltk.draw import ShowText
except:
TKINTER = False
TclError = ValueError
Expand All @@ -175,8 +177,6 @@
from nltk.etree import ElementTree
import nltk
urllib2 = nltk.internals.import_from_stdlib('urllib2')
from nltk.draw.table import Table
from nltk.draw import ShowText


######################################################################
Expand Down

0 comments on commit 1e13e88

Please sign in to comment.