1. 07 Aug, 2015 1 commit
  2. 10 Jul, 2015 1 commit
    • Stefano Mazzucco's avatar
      Enable downloading behind a proxy by using urllib2 · 9299c184
      Stefano Mazzucco authored
      Behind a proxy, `urllib` does not work with Python2 due to [Python issue
      24599](https://bugs.python.org/issue24599).
      
      Instead of using `urllib`, let's implement `urlretrieve` with `urllib2`, which
      instead works and leave the Python3 implementation untouched (since that
      one works too).
      
      This fixes buildout issue #32.
      
      There's no need to change the `try: except:IOError` block where `urlretrieve` is
      used (line 195 in download.py) since the exceptions raised by `urllib2`
      are subclasses of `IOError` and will then be caught.
      9299c184
  3. 01 Jul, 2015 21 commits
  4. 30 Jun, 2015 12 commits
  5. 29 Jun, 2015 3 commits
    • Reinout van Rees's avatar
      Updated changelog · 94a5f2d4
      Reinout van Rees authored
      94a5f2d4
    • Reinout van Rees's avatar
      In-place editing of os.walk results · 1030b3c6
      Reinout van Rees authored
      The [:] is necessary to edit the os.walk results in-place. Otherwise the
      filtering-out of .svn, CVS and so doesn't work as intended.
      (Note: this regression I put in was caught by one of the tests! Good that
      we've got such a large amount of tests!)
      1030b3c6
    • Reinout van Rees's avatar
      Properly handling non-ascii filenames in hashing function · be8bc821
      Reinout van Rees authored
      Added fs_to_text() function that ensures a filename is always unicode (python
      2) or str (python 3).
      
      os.walk() gets such a unicode dirname as start point, so that it tries to do
      its best on python2. The resulting filenames are converted to unicode to make
      really sure that the join() doesn't fail with a decoding error.
      
      The input to the hash function is encoded, as it gives an ascii encoding error
      otherwise on python 2.
      be8bc821
  6. 26 Jun, 2015 2 commits