Skip to content

Commit 9257753

Browse files
committed
chore: swith back string formatting inside logging messages
pylint-dev/pylint#1788 (comment)
1 parent fe77e99 commit 9257753

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyodata/v2/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ def from_etree(schema_nodes, config: Config):
12541254
for annotation_group in schema_node.xpath('edm:Annotations', namespaces=ANNOTATION_NAMESPACES):
12551255
for annotation in ExternalAnnontation.from_etree(annotation_group):
12561256
if not annotation.element_namespace != schema.namespaces:
1257-
modlog().warning(f"{annotation} not in the namespaces {','.join(schema.namespaces)}")
1257+
modlog().warning('{0} not in the namespaces {1}'.format(annotation, ','.join(schema.namespaces)))
12581258
continue
12591259

12601260
try:
@@ -2155,7 +2155,7 @@ def from_etree(target, annotation_node):
21552155
if term in SAP_ANNOTATION_VALUE_LIST:
21562156
return ValueHelper.from_etree(target, annotation_node)
21572157

2158-
modlog().warning(f'Unsupported Annotation({term})')
2158+
modlog().warning('Unsupported Annotation({0})'.format(term))
21592159
return None
21602160

21612161

@@ -2165,7 +2165,7 @@ def from_etree(annotations_node):
21652165
target = annotations_node.get('Target')
21662166

21672167
if annotations_node.get('Qualifier'):
2168-
modlog().warning(f'Ignoring qualified Annotations of {target}')
2168+
modlog().warning('Ignoring qualified Annotations of {}'.format(target))
21692169
return
21702170

21712171
for annotation in annotations_node.xpath('edm:Annotation', namespaces=ANNOTATION_NAMESPACES):

0 commit comments

Comments
 (0)