Skip to content

Commit

Permalink
Update sxm.py and serializer plugin copyrights
Browse files Browse the repository at this point in the history
- fix conversion clark notation qname to SXMQName
  • Loading branch information
davidtauriello committed Jun 10, 2024
1 parent a6c3bac commit c9cd5b2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions plugin/SimpleXBRLModel/SXM.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def remove_from_document(self, sxm_object, content_type='content'):
def _next_id(self, seed):
if len(seed) == 0:
seed = 'id'
elif re.match('^[0-9-\.]', seed) is not None: # ids cannot start with a number - or . This should be more robust matching for NCNAME
elif re.match(r'^[0-9-\.]', seed) is not None: # ids cannot start with a number - or . This should be more robust matching for NCNAME
seed = 'id_{}'.format(seed)
if self._seeds[seed] == 0:
self._seeds[seed] += 1
Expand Down Expand Up @@ -2234,7 +2234,7 @@ def _resolve_name_in_target_to_clark(name, node):

def _resolve_clark_to_qname(name, dts):
'''Convert a clark notation qname to a SXMQName'''
match = re.match('^{([^}]+)}(.*)$', name)
match = re.match(r'^{([^}]+)}(.*)$', name)
if match is None:
raise SXMException(f"QName '{name}' is not a valid clark notation")
return dts.new('QName', match.group(1), match.group(2))
Expand Down
4 changes: 2 additions & 2 deletions plugin/SimpleXBRLModel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""__init__.py
Simple XBRL odel
Simple XBRL Model
This is the package init file.
Expand Down Expand Up @@ -70,7 +70,7 @@ def dummy(*args, **kwargs):
'description': 'T',
'license': 'Apache-2',
'author': 'XBRL US Inc.',
'copyright': '(c) 2017-2020',
'copyright': '(c) 2017-present',
# classes of mount points (required)
'ModelObjectFactory.ElementSubstitutionClasses': None,
#'CntlrWinMain.Menu.Tools': sxmMenuTools,
Expand Down
2 changes: 1 addition & 1 deletion plugin/serializer/ACFR_Serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ def dummy(*args, **kwargs):
'description': "This plug-in organizes the taxonomy files and creates a Taxonomy Package for ACFR taxonomies",
'license': 'Apache-2',
'author': 'XBRL US Inc.',
'copyright': '(c) Copyright 2022 XBRL US Inc., All rights reserved.',
'copyright': '(c) Copyright 2022 - present XBRL US Inc., All rights reserved.',
'import': 'serializer',
# classes of mount points (required)
'CntlrCmdLine.Options': dummy,
Expand Down
2 changes: 1 addition & 1 deletion plugin/serializer/FERC_Serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ def dummy(*args, **kwargs):
'description': "This plug-in organizes the taxonomy files and creates a Taxonomy Package for FERC taxonomies",
'license': 'Apache-2',
'author': 'XBRL US Inc.',
'copyright': '(c) Copyright 2018 XBRL US Inc., All rights reserved.',
'copyright': '(c) Copyright 2018 - present XBRL US Inc., All rights reserved.',
'import': 'serializer',
# classes of mount points (required)
'CntlrCmdLine.Options': dummy,
Expand Down
2 changes: 1 addition & 1 deletion plugin/serializer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ def add_package_element(package, dts, property_name, option_name, element_name,
'description': "This plug-in organizes the taxonomy files and creates a Taxonomy Package",
'license': 'Apache-2',
'author': 'XBRL US Inc.',
'copyright': '(c) Copyright 2018 XBRL US Inc., All rights reserved.',
'copyright': '(c) Copyright 2018 - present XBRL US Inc., All rights reserved.',
'import': 'SimpleXBRLModel',
# classes of mount points (required)
'CntlrCmdLine.Options': cmdLineOptionExtender,
Expand Down

0 comments on commit c9cd5b2

Please sign in to comment.