Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
c454e065
Commit
c454e065
authored
May 25, 2010
by
Joshua Roesslein
Browse files
Fix for python 2.4. Release 1.7.1.
parent
1bfc3913
Changes
3
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
c454e065
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
setup
(
name
=
"tweepy"
,
setup
(
name
=
"tweepy"
,
version
=
"1.7"
,
version
=
"1.7
.1
"
,
description
=
"Twitter library for python"
,
description
=
"Twitter library for python"
,
license
=
"MIT"
,
license
=
"MIT"
,
author
=
"Joshua Roesslein"
,
author
=
"Joshua Roesslein"
,
...
...
tweepy/__init__.py
View file @
c454e065
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"""
"""
Tweepy Twitter API library
Tweepy Twitter API library
"""
"""
__version__
=
'1.7'
__version__
=
'1.7
.1
'
__author__
=
'Joshua Roesslein'
__author__
=
'Joshua Roesslein'
__license__
=
'MIT'
__license__
=
'MIT'
...
...
tweepy/parsers.py
View file @
c454e065
...
@@ -46,7 +46,10 @@ class JSONParser(Parser):
...
@@ -46,7 +46,10 @@ class JSONParser(Parser):
def
parse_error
(
self
,
payload
):
def
parse_error
(
self
,
payload
):
error
=
self
.
json_lib
.
loads
(
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
):
class
ModelParser
(
JSONParser
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment