Skip to content

Commit

Permalink
Use Python 3 style super()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed May 3, 2020
1 parent 67be4e8 commit 51581c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyhdfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(
), "Expected status {} for {}, got {}".format(
self._expected_status_code, exception, status_code
)
super(HdfsHttpException, self).__init__(message)
super().__init__(message)
self.message = message
self.exception = exception
self.status_code = status_code
Expand Down Expand Up @@ -177,7 +177,7 @@ class _BoilerplateClass(Dict[str, object]):
"""

def __init__(self, **kwargs: object) -> None:
super(_BoilerplateClass, self).__init__(**kwargs)
super().__init__(**kwargs)
self.__dict__ = self

def __repr__(self) -> str:
Expand Down

0 comments on commit 51581c4

Please sign in to comment.