commit
5c2962da64
12
fix_cannot_import_error.patch
Normal file
12
fix_cannot_import_error.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Nur reportlab-3.4.0/src/reportlab/lib/utils.py ../reportlab-3.4.0/src/reportlab/lib/utils.py
|
||||
--- reportlab-3.4.0/src/reportlab/lib/utils.py 2017-03-07 18:17:00.000000000 +0800
|
||||
+++ reportlab-3.4.0/src/reportlab/lib/utils.py 2022-01-12 16:37:55.914924400 +0800
|
||||
@@ -5,7 +5,7 @@
|
||||
__doc__='''Gazillions of miscellaneous internal utility functions'''
|
||||
|
||||
import os, sys, imp, time, types
|
||||
-from base64 import decodestring as base64_decodestring, encodestring as base64_encodestring
|
||||
+from base64 import decodebytes as base64_decodestring, encodebytes as base64_encodestring
|
||||
from reportlab import isPy3
|
||||
from reportlab.lib.logger import warnOnce
|
||||
from reportlab.lib.rltempfile import get_rl_tempfile, get_rl_tempdir, _rl_getuid
|
||||
@ -2,13 +2,14 @@
|
||||
|
||||
Name: python-reportlab
|
||||
Version: 3.4.0
|
||||
Release: 13
|
||||
Release: 14
|
||||
Summary: ReportLab library to create PDF documents and graphic
|
||||
License: BSD
|
||||
URL: https://www.reportlab.com/
|
||||
Source0: https://pypi.python.org/packages/source/r/reportlab/reportlab-%{version}.tar.gz
|
||||
Patch0001: 0fbf25e4857423f6a38ca7f5aeee1c84acaa3fc1.patch
|
||||
Patch0002: CVE-2019-17626.patch
|
||||
Patch0003: fix_cannot_import_error.patch
|
||||
|
||||
%description
|
||||
The ReportLab Toolkit. An Open Source Python library for generating PDFs and graphics.
|
||||
@ -60,6 +61,9 @@ PYTHONPATH="`pwd`/`ls -d build/lib*`" %{__python3} docs/genAll.py
|
||||
%doc demos/ tools/
|
||||
|
||||
%changelog
|
||||
* Wed Jan 12 2022 Chengshaowei <chenshaowei3@huawei.com> - 3.4.0-14
|
||||
- Fix can not import error
|
||||
|
||||
* Wed Jul 21 2021 yaoxin <yaoxin30@huawei.com> - 3.4.0-13
|
||||
- Fix CVE-2019-17626
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user