Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/cssselect/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

6 statements  

1# -*- coding: utf-8 -*- 

2""" 

3 CSS Selectors based on XPath 

4 ============================ 

5 

6 This module supports selecting XML/HTML elements based on CSS selectors. 

7 See the `CSSSelector` class for details. 

8 

9 

10 :copyright: (c) 2007-2012 Ian Bicking and contributors. 

11 See AUTHORS for more details. 

12 :license: BSD, see LICENSE for more details. 

13 

14""" 

15 

16from cssselect.parser import ( 

17 FunctionalPseudoElement, 

18 Selector, 

19 SelectorError, 

20 SelectorSyntaxError, 

21 parse, 

22) 

23from cssselect.xpath import ExpressionError, GenericTranslator, HTMLTranslator 

24 

25__all__ = ( 

26 "ExpressionError", 

27 "FunctionalPseudoElement", 

28 "GenericTranslator", 

29 "HTMLTranslator", 

30 "parse", 

31 "Selector", 

32 "SelectorError", 

33 "SelectorSyntaxError", 

34) 

35 

36VERSION = "1.2.0" 

37__version__ = VERSION