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 _rfc_6868_escape, 

13 _rfc_6868_unescape, 

14 dquote, 

15 param_value, 

16 q_join, 

17 q_split, 

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 "_escape_char", 

40 "_escape_string", 

41 "_foldline", 

42 "_rfc_6868_escape", 

43 "_rfc_6868_unescape", 

44 "_unescape_char", 

45 "_unescape_string", 

46 "dquote", 

47 "param_value", 

48 "q_join", 

49 "q_split", 

50 "split_on_unescaped_comma", 

51 "split_on_unescaped_semicolon", 

52 "unescape_backslash", 

53 "unescape_list_or_string", 

54 "validate_param_value", 

55 "validate_token", 

56]