diff options
author | pjenvey <devnull@localhost> | 2008-03-05 05:11:41 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2008-03-05 05:11:41 +0000 |
commit | b92ceec23ab02cd872aea40f25f1e0f8cd307c74 (patch) | |
tree | e092e5cff6ef2e229efa7a644826586683dccef7 /paste/util | |
parent | a07657c03f00195bcd7d2c8232b969488449c7da (diff) | |
download | paste-b92ceec23ab02cd872aea40f25f1e0f8cd307c74.tar.gz |
only import webbrowser when necessary
Diffstat (limited to 'paste/util')
-rw-r--r-- | paste/util/PySourceColor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/util/PySourceColor.py b/paste/util/PySourceColor.py index f346747..65406ec 100644 --- a/paste/util/PySourceColor.py +++ b/paste/util/PySourceColor.py @@ -195,7 +195,6 @@ import keyword import token
import tokenize
import traceback
-import webbrowser
try :
import cStringIO as StringIO
except:
@@ -1168,6 +1167,7 @@ def walkdir(dir): def showpage(path):
"""Helper function to open webpages"""
try:
+ import webbrowser
webbrowser.open_new(os.path.abspath(path))
except:
traceback.print_exc()
|