From dc71c4eec70b201e61361b4ba8f0d5d7d476e70f Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sun, 20 Jan 2013 15:40:55 -0800 Subject: [PATCH] Remove deprecated nearby_places. --- tests.py | 2 -- tweepy/api.py | 8 -------- 2 files changed, 10 deletions(-) diff --git a/tests.py b/tests.py index 587bf69..9adb283 100644 --- 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 diff --git a/tweepy/api.py b/tweepy/api.py index 345aa87..b75b244 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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', -- 2.25.1