~wallyworld/lazr.restfulclient/relative-url-fix-681767

« back to all changes in this revision

Viewing changes to src/lazr/restfulclient/resource.py

  • Committer: Leonard Richardson
  • Date: 2010-11-04 18:21:50 UTC
  • mfrom: (99.2.1 lazr.restfulclient)
  • Revision ID: leonard.richardson@canonical.com-20101104182150-9e0g7gbijv8snc38
[r=allenap,leonardr] Restore compatibility with Python 2.4. Committed on behalf of Martin [gz].

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
 
32
32
import cgi
33
 
from email.message import Message
 
33
try:
 
34
    from email.message import Message
 
35
except ImportError:
 
36
    from email.Message import Message
34
37
import simplejson
35
38
from StringIO import StringIO
36
39
import types