Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/uri_template/charset.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

11 statements  

1"""Character sets.""" 

2 

3from __future__ import annotations 

4 

5 

6class Charset: 

7 """Define character sets used in other classes.""" 

8 

9 ALPHA = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' 

10 DIGIT = '0123456789' 

11 HEX_DIGIT = '0123456789ABCDEFabcdef' 

12 GEN_DELIMS = ':/?#[]@' 

13 SUB_DELIMS = "!$&'()*+,;=" 

14 UNRESERVED = ALPHA + DIGIT + '-._~' 

15 RESERVED = GEN_DELIMS + SUB_DELIMS 

16 VAR_START = ALPHA + DIGIT + '_' 

17 VAR_CHAR = VAR_START + '.'