~jml/lazr.restfulclient/multiple-instance-safe

« back to all changes in this revision

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

  • Committer: Jonathan Lange
  • Date: 2012-03-22 15:27:37 UTC
  • Revision ID: jml@mumak.net-20120322152737-vcj1bafjt3n1hkox
Flakes

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
 
33
33
import atexit
34
 
import gzip
35
34
import shutil
36
35
import tempfile
37
36
# Import sleep directly into the module so we can monkey-patch it
38
37
# during a test.
39
38
from time import sleep
40
39
from httplib2 import (
41
 
    FailedToDecompressContent, FileCache, Http, urlnorm)
 
40
    FileCache,
 
41
    Http,
 
42
    urlnorm,
 
43
    )
42
44
import simplejson
43
45
from cStringIO import StringIO
44
 
import zlib
45
46
 
46
47
from urllib import urlencode
47
48
from wadllib.application import Application
49
50
from errors import error_for, HTTPError
50
51
from _json import DatetimeJSONEncoder
51
52
 
 
53
 
52
54
# A drop-in replacement for httplib2's safename.
53
55
from httplib2 import _md5, re_url_scheme, re_slash
54
56
def safename(filename):