components/python/kombu/patches/01.python3-reqs.patch
changeset 3998 5bd484384122
parent 3997 0ca3f3d6c919
child 4002 95b8f35fcdd5
equal deleted inserted replaced
3997:0ca3f3d6c919 3998:5bd484384122
     1 This patch comes from upstream; it is the essential change between 2.5.15
       
     2 and 2.5.16; once we upgrade to 2.5.16 or later, the patch can be removed.
       
     3 The patch is needed to get kombu to install properly with Python 3.
       
     4 
       
     5 --- kombu-2.5.12/setup.py	2013-06-28 07:11:26.000000000 -0700
       
     6 +++ kombu-2.5.12/setup.py	2013-10-23 10:53:25.000000000 -0700
       
     7 @@ -108,8 +108,8 @@
       
     8  
       
     9  
       
    10  def reqs(f):
       
    11 -    return filter(None, [strip_comments(l) for l in open(
       
    12 -        os.path.join(os.getcwd(), 'requirements', f)).readlines()])
       
    13 +    return list(filter(None, [strip_comments(l) for l in open(
       
    14 +        os.path.join(os.getcwd(), 'requirements', f)).readlines()]))
       
    15  
       
    16  install_requires = reqs('default.txt')
       
    17  if py_version[0:2] == (2, 6):