Skip to content

Commit

Permalink
Use .format instead of string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 12, 2020
1 parent bfbc9ae commit 3e773f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jscc/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def extend_schema(basename, schema, metadata, codelists=None):
def recurse(metadata):
urls = metadata.get('dependencies', []) + metadata.get('testDependencies', [])
for metadata_url in urls:
patch_url = metadata_url.rsplit('/', 1)[0] + '/' + basename
patch_url = '{}/{}'.format(metadata_url.rsplit('/', 1)[0], basename)
metadata = http_get(metadata_url).json()
patch = http_get(patch_url).json()
if codelists is not None:
Expand Down

0 comments on commit 3e773f2

Please sign in to comment.