Skip to content

Commit

Permalink
Bye-bye, f-strings :(
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Oct 27, 2017
1 parent 818e58d commit 24a57d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importlib_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def open(package: Package, file_name: FileName) -> BinaryIO:
data = loader.get_data(str(full_path))
except OSError:
package_name = package.__spec__.name
message = f'{file_name!r} resource not found in {package_name!r}'
message = '{!r} resource not found in {!r}'.format(file_name, package_name)
raise FileNotFoundError(message)
else:
return io.BytesIO(data)
Expand Down

0 comments on commit 24a57d0

Please sign in to comment.