Reorder methods

This commit is contained in:
Kristóf Tóth 2018-09-09 00:49:03 +02:00
parent 8d78f38d99
commit ad55d4011b
1 changed files with 4 additions and 4 deletions

View File

@ -53,10 +53,6 @@ class Normalisename:
self.operation(path, normalpath) # pylint: disable=not-callable
return normalpath
def check_normal(self, path):
filename = basename(path)
return filename == self.normalname(filename)
def normalname(self, filename):
return unidecode(
''.join(
@ -65,3 +61,7 @@ class Normalisename:
or ch in self.whitelist
)
)
def check_normal(self, path):
filename = basename(path)
return filename == self.normalname(filename)