forked from hans/Nominatim
pylint: disable no-self-use check
This checker encourages bad behaviour (namely changing the static status of a function during inheritence) and will be made optional in upcoming versions of pylint.
This commit is contained in:
@@ -278,8 +278,7 @@ class LegacyICUNameAnalyzer(AbstractAnalyzer):
|
||||
+ [(k, v, part_ids.get(v, None)) for k, v in partial_tokens.items()]
|
||||
|
||||
|
||||
@staticmethod
|
||||
def normalize_postcode(postcode):
|
||||
def normalize_postcode(self, postcode):
|
||||
""" Convert the postcode to a standardized form.
|
||||
|
||||
This function must yield exactly the same result as the SQL function
|
||||
|
||||
@@ -337,8 +337,7 @@ class LegacyNameAnalyzer(AbstractAnalyzer):
|
||||
return self.normalizer.transliterate(phrase)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def normalize_postcode(postcode):
|
||||
def normalize_postcode(self, postcode):
|
||||
""" Convert the postcode to a standardized form.
|
||||
|
||||
This function must yield exactly the same result as the SQL function
|
||||
|
||||
Reference in New Issue
Block a user