Reorder methods
This commit is contained in:
parent
8d78f38d99
commit
ad55d4011b
@ -53,10 +53,6 @@ class Normalisename:
|
|||||||
self.operation(path, normalpath) # pylint: disable=not-callable
|
self.operation(path, normalpath) # pylint: disable=not-callable
|
||||||
return normalpath
|
return normalpath
|
||||||
|
|
||||||
def check_normal(self, path):
|
|
||||||
filename = basename(path)
|
|
||||||
return filename == self.normalname(filename)
|
|
||||||
|
|
||||||
def normalname(self, filename):
|
def normalname(self, filename):
|
||||||
return unidecode(
|
return unidecode(
|
||||||
''.join(
|
''.join(
|
||||||
@ -65,3 +61,7 @@ class Normalisename:
|
|||||||
or ch in self.whitelist
|
or ch in self.whitelist
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def check_normal(self, path):
|
||||||
|
filename = basename(path)
|
||||||
|
return filename == self.normalname(filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user