1. btol45
  2. pyquery

Commits

wiremine  committed 3b8fbad

CHANGE: Changing __init__() to keep track of the passed selector.

  • Participants
  • Parent commits f16fa7d
  • Branches default

Comments (0)

Files changed (1)

File pyquery/pyquery.py

View file
 
             # select nodes
             if elements and selector is not no_default:
+                self.selector = selector
                 xpath = selector_to_xpath(selector)
                 results = [tag.xpath(xpath) for tag in elements]
                 # Flatten the results