File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 143143WILL = "WILL"
144144WWW = "WWW"
145145
146+ MIME_TEXT = "text/plain"
147+ MIME_HTML = "text/html"
148+
146149payloads = {
147150 "https://gedcom.io/terms/v7/ABBR" : "http://www.w3.org/2001/XMLSchema#string" ,
148151 "https://gedcom.io/terms/v7/ADDR" : "http://www.w3.org/2001/XMLSchema#string" ,
Original file line number Diff line number Diff line change 11"""GEDCOM 7 parser."""
22
33import re
4- from typing import Dict , List
54
65from . import cast , const , grammar
76from .types import GedcomStructure
87
98
10- def loads (string : str ) -> List [GedcomStructure ]:
9+ def loads (string : str ) -> list [GedcomStructure ]:
1110 """Load from a string."""
12- context : Dict [int , GedcomStructure ] = {}
13- records : List [GedcomStructure ] = []
14- ext : Dict [str , str ] = {}
11+ context : dict [int , GedcomStructure ] = {}
12+ records : list [GedcomStructure ] = []
13+ ext : dict [str , str ] = {}
1514 for match in re .finditer (grammar .line , string ):
1615 data = match .groupdict ()
1716 level = int (data ["level" ])
You can’t perform that action at this time.
0 commit comments