Skip to content

Commit

Permalink
chore: Run pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Jan 15, 2022
1 parent 2aff344 commit f13fc6e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
from setuptools import find_packages, setup

install_requires = ["requests>=2.20.0"]
Expand Down
2 changes: 1 addition & 1 deletion src/postmarker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def from_config(cls, config, prefix="postmark_", is_uppercase=False):
return cls(**kwargs)

def __repr__(self):
return "<{}: {}>".format(self.__class__.__name__, self.server_token)
return f"<{self.__class__.__name__}: {self.server_token}>"

def _setup_managers(self):
"""Allows to access manager by model name.
Expand Down
2 changes: 1 addition & 1 deletion src/postmarker/models/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __str__(self):
return self.Name

def __repr__(self):
return "<{}: {}>".format(self.__class__.__name__, self)
return f"<{self.__class__.__name__}: {self}>"

def __len__(self):
return self.ContentLength
Expand Down

0 comments on commit f13fc6e

Please sign in to comment.