Skip to content

Commit 2655004

Browse files
committed
Several minor doc fixes
1 parent 71f00a1 commit 2655004

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

geoip2/records.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ class RepresentedCountry(Country):
140140
include other types such as ``embassy`` in the future. Returned by all
141141
endpoints.
142142
143-
144-
145143
"""
146144
_valid_attributes = set(['confidence', 'geoname_id', 'iso_code', 'names', 'type'])
147145

@@ -215,15 +213,16 @@ class Subdivision(PlaceRecord):
215213
confidence that the subdivision is correct. This attribute is only
216214
available from the Omni end point.
217215
:ivar geoname_id: This is a GeoName ID for the subdivision. This
218-
attribute is returned by all end points.
216+
attribute is returned by all end points except Country.
219217
:ivar iso_code: This is a string up to three characters long
220218
contain the subdivision portion of the ISO 3166-2 code
221219
(http://en.wikipedia.org/wiki/ISO_3166-2). This attribute is returned
222-
by all end points.
220+
by all end points except Country.
223221
:ivar name: The name of the subdivision based on the languages list
224222
passed to the constructor. This attribute is returned by all end points.
225223
:ivar names: A dictionary where the keys are language codes and the
226-
values are names. This attribute is returned by all end points.
224+
values are names. This attribute is returned by all end points except
225+
Country.
227226
228227
"""
229228
_valid_attributes = set(['confidence', 'geoname_id', 'iso_code', 'names'])
@@ -252,9 +251,9 @@ def __new__(cls, languages, *subdivisions):
252251
def most_specific(self):
253252
"""The most specific subdivision available
254253
255-
:returns: The most specific (smallest) :py:class:`Subdivision`. If there
256-
are no :py:class:`Subdivision` objects for the response, this returns an
257-
empty :py:class:`Subdivision`.
254+
:returns: The most specific (smallest) :py:class:`Subdivision`.
255+
If there are no :py:class:`Subdivision` objects for the response,
256+
this returns an empty :py:class:`Subdivision`.
258257
259258
"""
260259
try:

0 commit comments

Comments
 (0)