summaryrefslogtreecommitdiff
path: root/examples/urlExtractor.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/urlExtractor.py')
-rw-r--r--examples/urlExtractor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/urlExtractor.py b/examples/urlExtractor.py
index 2c66d78..10783de 100644
--- a/examples/urlExtractor.py
+++ b/examples/urlExtractor.py
@@ -26,7 +26,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.href) for toks,strt,end in link.scanString(htmlText))
+ {toks.body: toks.href for toks,strt,end in link.scanString(htmlText)}
)