]> git.pld-linux.org Git - packages/python-pisa.git/blob - reportlab3.patch
- fixed bogus version test and removed unnecessary dep
[packages/python-pisa.git] / reportlab3.patch
1 --- pisa-3.0.33/sx/pisa3/pisa_util.py~  2010-06-16 15:43:35.000000000 +0200
2 +++ pisa-3.0.33/sx/pisa3/pisa_util.py   2016-05-29 09:40:20.286049651 +0200
3 @@ -51,10 +51,10 @@
4  
5  rgb_re = re.compile("^.*?rgb[(]([0-9]+).*?([0-9]+).*?([0-9]+)[)].*?[ ]*$")
6  
7 -if not(reportlab.Version[0] == "2" and reportlab.Version[2] >= "1"):
8 +if not(reportlab.Version[0] == "3" or (reportlab.Version[0] == "2" and reportlab.Version[2] >= "1")):
9      raise ImportError("Reportlab Version 2.1+ is needed!")
10  
11 -REPORTLAB22 = (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2")
12 +REPORTLAB22 = (reportlab.Version[0] == "3" or (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2"))
13  # print "***", reportlab.Version, REPORTLAB22, reportlab.__file__
14  
15  import logging
This page took 0.074533 seconds and 3 git commands to generate.