Skip to content

Commit

Permalink
Update kingfisher_scrapy/util.py
Browse files Browse the repository at this point in the history
Co-authored-by: James McKinney <26463+jpmckinney@users.noreply.github.com>
  • Loading branch information
yolile and jpmckinney committed Feb 11, 2021
1 parent 83fad6a commit 90f73bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kingfisher_scrapy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,6 @@ def get_file_name_and_extension(filename):
>>> get_file_name_and_extension('test.json')
'test', 'json'
"""
archive_name, archive_format = os.path.splitext(filename)
archive_format = archive_format[1:].lower()
return archive_name, archive_format
name, extension = os.path.splitext(filename)
extension = extension[1:].lower()
return name, extension

0 comments on commit 90f73bf

Please sign in to comment.