Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/icalendar/parser/__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"""This module parses and generates contentlines as defined in RFC 5545 

2(iCalendar), but will probably work for other MIME types with similar syntax. 

3Eg. RFC 2426 (vCard) 

4 

5It is stupid in the sense that it treats the content purely as strings. No type 

6conversion is attempted. 

7""" 

8 

9from .content_line import Contentline, Contentlines 

10from .parameter import ( 

11 Parameters, 

12 dquote, 

13 param_value, 

14 q_join, 

15 q_split, 

16 rfc_6868_escape, 

17 rfc_6868_unescape, 

18 validate_param_value, 

19) 

20from .property import ( 

21 split_on_unescaped_comma, 

22 split_on_unescaped_semicolon, 

23 unescape_backslash, 

24 unescape_list_or_string, 

25) 

26from .string import ( 

27 escape_char, 

28 escape_string, 

29 foldline, 

30 unescape_char, 

31 unescape_string, 

32 validate_token, 

33) 

34 

35__all__ = [ 

36 "Contentline", 

37 "Contentlines", 

38 "Parameters", 

39 "dquote", 

40 "escape_char", 

41 "escape_string", 

42 "foldline", 

43 "param_value", 

44 "q_join", 

45 "q_split", 

46 "rfc_6868_escape", 

47 "rfc_6868_unescape", 

48 "split_on_unescaped_comma", 

49 "split_on_unescaped_semicolon", 

50 "unescape_backslash", 

51 "unescape_char", 

52 "unescape_list_or_string", 

53 "unescape_string", 

54 "validate_param_value", 

55 "validate_token", 

56]