Skip to content

Commit

Permalink
Save text to variable for nicer indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 5, 2018
1 parent 4435eaa commit 78bc056
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions importlib_metadata/api.py
Expand Up @@ -67,9 +67,8 @@ def metadata(self):
The returned object will have keys that name the various bits of
metadata. See PEP 566 for details.
"""
return email.message_from_string(
self.read_text('METADATA') or self.read_text('PKG-INFO')
)
text = self.read_text('METADATA') or self.read_text('PKG-INFO')
return email.message_from_string(text)

@property
def version(self):
Expand Down

0 comments on commit 78bc056

Please sign in to comment.