Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
Set pep8 isinstance of type comparisons (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
EwertonBello committed Oct 18, 2020
1 parent c69dd6e commit 8797371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions area4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def divider(number):
:Example:
:code:`area4.divider(3)` will return '............'
"""
if number == 0 or type(number) != int:
if number == 0 or not isinstance(number, int):
raise ValueError("Please use a number bigger then 0!")
else:
try:
Expand All @@ -46,7 +46,7 @@ def splitter(div, *args):
:param div: The divider.
:type div: str
"""
if type(div) is int:
if isinstance(div, int):
div = utils.get_raw_file()[div]
if len(args) == 1:
return args[0]
Expand Down

0 comments on commit 8797371

Please sign in to comment.