mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-26 10:21:09 +00:00
ubuntutools/lp/lpapicache.py: recent lazr.restfulclient does use of
unicode strings, use basestring to catch bot str and unicode.
This commit is contained in:
parent
0f734c5ef8
commit
7082fa14ff
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -7,7 +7,11 @@ ubuntu-dev-tools (0.84) UNRELEASED; urgency=low
|
|||||||
[ Manny Vindiola ]
|
[ Manny Vindiola ]
|
||||||
* grab-merge: Only download files listed multiple times in REPORT once
|
* grab-merge: Only download files listed multiple times in REPORT once
|
||||||
|
|
||||||
-- Manny Vindiola <mannyv@gmail.com> Tue, 24 Nov 2009 17:03:08 -0500
|
[ Luca Falavigna ]
|
||||||
|
* ubuntutools/lp/lpapicache.py: recent lazr.restfulclient does use of
|
||||||
|
unicode strings, use basestring to catch bot str and unicode.
|
||||||
|
|
||||||
|
-- Luca Falavigna <dktrkranz@debian.org> Sun, 29 Nov 2009 17:52:33 +0100
|
||||||
|
|
||||||
ubuntu-dev-tools (0.83) lucid; urgency=low
|
ubuntu-dev-tools (0.83) lucid; urgency=low
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ class BaseWrapper(object):
|
|||||||
resource_type = None # it's a base class after all
|
resource_type = None # it's a base class after all
|
||||||
|
|
||||||
def __new__(cls, data):
|
def __new__(cls, data):
|
||||||
if isinstance(data, str) and data.startswith('https://api.edge.launchpad.net/beta/'):
|
if isinstance(data, basestring) and data.startswith('https://api.edge.launchpad.net/beta/'):
|
||||||
# looks like a LP API URL
|
# looks like a LP API URL
|
||||||
# check if it's already cached
|
# check if it's already cached
|
||||||
cached = cls._cache.get(data)
|
cached = cls._cache.get(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user