X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9864b191b134a4681b5e21e23ca9e00c69db62db..70dc4957dc41df7d808ae4acb6c881e80b6348f9:/nominatim/data/place_name.py?ds=inline diff --git a/nominatim/data/place_name.py b/nominatim/data/place_name.py index f4c5e0fa..abba3544 100644 --- a/nominatim/data/place_name.py +++ b/nominatim/data/place_name.py @@ -21,7 +21,7 @@ class PlaceName: In addition to that, a name may have arbitrary additional attributes. How attributes are used, depends on the sanitizers and token analysers. - The exception is is the 'analyzer' attribute. This attribute determines + The exception is the 'analyzer' attribute. This attribute determines which token analysis module will be used to finalize the treatment of names. """ @@ -34,7 +34,7 @@ class PlaceName: def __repr__(self) -> str: - return f"PlaceName(name='{self.name}',kind='{self.kind}',suffix='{self.suffix}')" + return f"PlaceName(name={self.name!r},kind={self.kind!r},suffix={self.suffix!r})" def clone(self, name: Optional[str] = None,