]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/legacy_tokenizer.py
convert special phrase loaders to generators
[nominatim.git] / nominatim / tokenizer / legacy_tokenizer.py
index 299e2fdecc2289f8e0848cc07d6e9c9bc082b600..7b78b22a87066370bba513072b0ace30c7b7078a 100644 (file)
@@ -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