X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e427712cb04baf001d41e34af46bb9fd083202a1..e9efef90954cba09fdba3e556e9efff75540071c:/nominatim/data/place_name.py 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,