Remove deprecated nearby_places.
authorJoshua Roesslein <jroesslein@gmail.com>
Sun, 20 Jan 2013 23:40:55 +0000 (15:40 -0800)
committerJoshua Roesslein <jroesslein@gmail.com>
Sun, 20 Jan 2013 23:40:55 +0000 (15:40 -0800)
tests.py
tweepy/api.py

index 587bf699184e186259ba57f5b20a7c15101d3fb1..9adb2834727df3d5e5df7f05a1e40107cd0148ed 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -319,8 +319,6 @@ class TweepyAPITests(unittest.TestCase):
         self.assertEqual(twitter_hq[0].id, '3bdf30ed8b201f31')
         # Test various API functions using Austin, TX, USA
         self.assertEqual(self.api.geo_id(id='c3f37afa9efcf94b').full_name, 'Austin, TX')
-        self.assertTrue(place_name_in_list('Austin, TX',
-            self.api.nearby_places(lat=30.267370168467806, long= -97.74261474609375))) # Austin, TX, USA
         self.assertTrue(place_name_in_list('Austin, TX',
             self.api.reverse_geocode(lat=30.267370168467806, long= -97.74261474609375))) # Austin, TX, USA
 
index 345aa8764ff5c3751ed66843eae6bd580a20eb33..b75b24452581d00000bd6d87ec5f39fb60731288 100644 (file)
@@ -688,14 +688,6 @@ class API(object):
         allowed_param = ['lat', 'long', 'accuracy', 'granularity', 'max_results']
     )
 
-    """ geo/nearby_places """
-    # listed as deprecated on twitter's API documents
-    nearby_places = bind_api(
-        path = '/geo/nearby_places.json',
-        payload_type = 'place', payload_list = True,
-        allowed_param = ['lat', 'long', 'ip', 'accuracy', 'granularity', 'max_results']
-    )
-
     """ geo/id """
     geo_id = bind_api(
         path = '/geo/id/{id}.json',