~ubuntu-branches/ubuntu/raring/agtl/raring

« back to all changes in this revision

Viewing changes to files/advancedcaching/downloader.py

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona, Artur Rona, Charlie Smotherman
  • Date: 2010-02-17 19:48:08 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100217194808-mibmv1jxsj5w5y4h
Tags: 0.5.1-1ubuntu1
[ Artur Rona] 
* Merge from debian testing, remaining changes: (LP: #523357)
  - debian/control: Replace python2.5-dev Build-Depends with python-dev
  - debian/pyversions: Replace "2.5" with "2.6-" to fix FTBFS

[Charlie Smotherman ]
* Removed debain/pyversions.
* Added XS-Python-Version: >=2.5 to debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
            return urllib2.urlopen(req)
103
103
 
104
104
        elif data == None:
105
 
            values = urllib.urlencode(values)
 
105
            if (isinstance(values, dict)):
 
106
                values = urllib.urlencode( values)
106
107
            req = urllib2.Request(url, values)
107
108
            self.add_headers(req)
108
109
            return urllib2.urlopen(req)