geopy/geopy — pull request #92 by ThomasG77 (2014-12-26 17:22:20+00:00)
Title: make pylint fixes

Correct to get less warnings when doing `make pylint`

Fix concerning only syntax level, no change concerning logic

**Now**

pylint --rcfile .pylintrc geopy
************* Module geopy.point
W:145, 8: Access to a protected member _items of a client class (protected-access)
************* Module geopy.distance
R:341, 4: Too many local variables (35/15) (too-many-locals)
R:439, 4: Too many local variables (32/15) (too-many-locals)
************* Module geopy.util
R: 19, 0: Too few public methods (1/2) (too-few-public-methods)
************* Module geopy.geocoders.smartystreets
R: 15, 0: Too few public methods (1/2) (too-few-public-methods)
************* Module geopy.geocoders.base
R:117, 4: Too many branches (16/12) (too-many-branches)
************* Module geopy.geocoders.what3words
R: 32, 4: Too many arguments (6/5) (too-many-arguments)
W: 89, 4: Arguments number differs from overridden method (arguments-differ)
W:198, 4: Arguments number differs from overridden method (arguments-differ)
************* Module geopy.geocoders.dot_us
R: 21, 0: Too few public methods (1/2) (too-few-public-methods)
************* Module geopy.geocoders.bing
R: 62, 4: Too many arguments (8/5) (too-many-arguments)

**Before**

```
pylint --rcfile .pylintrc geopy
Warning: option include-ids is deprecated and ignored.
************* Module geopy.compat
C: 25, 0: Wrong continued indentation.
build_opener, ProxyHandler, URLError, install_opener)
^ | (bad-continuation)
C: 30, 0: Wrong continued indentation.
ProxyHandler, URLError, urlopen, build_opener, install_opener)
^ | (bad-continuation)
C: 16, 4: Missing function docstring (missing-docstring)
C: 19, 4: Missing function docstring (missing-docstring)
************* Module geopy.point
W:145, 8: Access to a protected member _items of a client class (protected-access)
C:160, 4: Missing method docstring (missing-docstring)
C:184, 4: Missing method docstring (missing-docstring)
C:196, 4: Missing method docstring (missing-docstring)
C:214, 4: Missing method docstring (missing-docstring)
C:235, 4: Missing method docstring (missing-docstring)
************* Module geopy.distance
C: 25, 0: Line too long (83/79) (line-too-long)
C: 26, 0: Line too long (83/79) (line-too-long)
C: 27, 0: Line too long (81/79) (line-too-long)
C:479, 0: Wrong hanging indentation.
-3 + 4 * cos2_sigma_m ** 2
^ | (bad-continuation)
C:480, 0: Wrong hanging indentation.
)
^ | | (bad-continuation)
C:150, 4: Missing method docstring (missing-docstring)
R:335, 4: Too many local variables (35/15) (too-many-locals)
R:433, 4: Too many local variables (32/15) (too-many-locals)
************* Module geopy.util
R: 19, 0: Too few public methods (1/2) (too-few-public-methods)
************* Module geopy.geocoders.geonames
C:127, 0: Wrong hanging indentation.
x.strip() for x in
^ | (bad-continuation)
C:128, 0: Wrong hanging indentation.
self._coerce_point_to_string(query).split(',')
^ | (bad-continuation)
C:135, 0: Wrong hanging indentation.
'username': self.username
|^ (bad-continuation)
************* Module geopy.geocoders.smartystreets
R: 15, 0: Too few public methods (1/2) (too-few-public-methods)
************* Module geopy.geocoders.arcgis
C:158, 0: Wrong continued indentation.
distance=None, wkid=DEFAULT_WKID):
| ^ (bad-continuation)
C:199, 0: Wrong continued indentation.
timeout=timeout, distance=distance, wkid=wkid)
^ | (bad-continuation)
************* Module geopy.geocoders.yandex
C:114, 0: Wrong hanging indentation.
x.strip() for x in
^ | (bad-continuation)
C:115, 0: Wrong hanging indentation.
self._coerce_point_to_string(query).split(',')
^ | (bad-continuation)
************* Module geopy.geocoders.base
R:117, 4: Too many branches (16/12) (too-many-branches)
************* Module geopy.geocoders.what3words
C: 81, 0: Wrong hanging indentation before block.
self.word_re.match(query) or
^ | (bad-continuation)
C: 82, 0: Wrong hanging indentation before block.
self.multiple_word_re.match(query)
^ | (bad-continuation)
R: 32, 4: Too many arguments (6/5) (too-many-arguments)
C: 79, 4: Missing method docstring (missing-docstring)
W: 88, 4: Arguments number differs from overridden method (arguments-differ)
W:197, 4: Arguments number differs from overridden method (arguments-differ)
C:247, 8: Missing function docstring (missing-docstring)
************* Module geopy.geocoders.dot_us
R: 21, 0: Too few public methods (1/2) (too-few-public-methods)
************* Module geopy.geocoders.bing
C: 71, 0: Wrong hanging indentation before block.
): # pylint: disable=W0221
| | ^ (bad-continuation)
R: 62, 4: Too many arguments (8/5) (too-many-arguments)
```