summaryrefslogtreecommitdiff
path: root/examples/urlExtractorNew.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/urlExtractorNew.py')
-rw-r--r--examples/urlExtractorNew.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/urlExtractorNew.py b/examples/urlExtractorNew.py
index 0aac875..7d6a1b5 100644
--- a/examples/urlExtractorNew.py
+++ b/examples/urlExtractorNew.py
@@ -28,7 +28,7 @@ for toks,strt,end in link.scanString(htmlText):
# Create dictionary from list comprehension, assembled from each pair of tokens returned
# from a matched URL.
pprint.pprint(
- dict( [ (toks.body,toks.startA.href) for toks,strt,end in link.scanString(htmlText) ] )
+ { toks.body:toks.startA.href for toks,strt,end in link.scanString(htmlText) }
)