1. Luke Plant
  2. pyquery

Commits

Christian Wyglendowski  committed ab8d8b9

Fix for one of the doctests in README.txt that depended on the current local language setting - selected a link that didn't have a language specification in the URL.

  • Participants
  • Parent commits 84b61de
  • Branches default

Comments (0)

Files changed (1)

File pyquery/README.txt

View file
 scrapping::
 
     >>> d = pq(url='http://google.com')
-    >>> d('a:last').attr('href')
-    '/intl/fr/privacy.html'
+    >>> d('a').eq(25).attr('href')
+    '/services/'
     >>> d.make_links_absolute()
     [<html>]
-    >>> d('a:last').attr('href')
-    'http://google.com/intl/fr/privacy.html'
+    >>> d('a').eq(25).attr('href')
+    'http://google.com/services/'
 
 
 Testing