from setuptools import setup, find_packages
setup(name="tweepy",
- version="1.7",
+ version="1.7.1",
description="Twitter library for python",
license="MIT",
author="Joshua Roesslein",
"""
Tweepy Twitter API library
"""
-__version__ = '1.7'
+__version__ = '1.7.1'
__author__ = 'Joshua Roesslein'
__license__ = 'MIT'
def parse_error(self, payload):
error = self.json_lib.loads(payload)
- return error['error'] if error.has_key('error') else error['errors']
+ if error.has_key('error'):
+ return error['error']
+ else:
+ return error['errors']
class ModelParser(JSONParser):