Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yhoiseth committed Jul 19, 2018
1 parent cf035c9 commit f5f838f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions paytext/paytext.py
Expand Up @@ -37,7 +37,7 @@ def generalize(self) -> None:
self._clean_trailing_date()
self._clean_trailing_amount_and_currency()

def _clean_leading_card_number(self):
def _clean_leading_card_number(self)-> None:
pattern = compile_regex(r'\*\d{4}')

try:
Expand All @@ -46,7 +46,7 @@ def _clean_leading_card_number(self):
except IndexError:
pass

def _clean_leading_date(self):
def _clean_leading_date(self)-> None:
pattern = compile_regex(r'\d{2}\.\d{2}')

try:
Expand All @@ -55,7 +55,7 @@ def _clean_leading_date(self):
except IndexError:
pass

def _clean_leading_amount_and_currency(self):
def _clean_leading_amount_and_currency(self)-> None:
try:
currency: Any = iso4217parse.by_alpha3(self.parts[0])
if isinstance(currency, iso4217parse.Currency):
Expand All @@ -64,7 +64,7 @@ def _clean_leading_amount_and_currency(self):
except IndexError:
pass

def _clean_trailing_exchange_rate(self):
def _clean_trailing_exchange_rate(self)-> None:
pattern = compile_regex(r'\d{1}\.\d{4}')

try:
Expand All @@ -74,7 +74,7 @@ def _clean_trailing_exchange_rate(self):
except IndexError:
pass

def _clean_trailing_date(self):
def _clean_trailing_date(self)-> None:
pattern = compile_regex(r'\d{2}\.\d{2}\.\d{2}')

try:
Expand All @@ -88,7 +88,7 @@ def _clean_trailing_date(self):
except IndexError:
pass

def _clean_trailing_amount_and_currency(self):
def _clean_trailing_amount_and_currency(self)-> None:
pattern = compile_regex(r'\d+,\d{2}')

try:
Expand Down

0 comments on commit f5f838f

Please sign in to comment.