!16 修复编译失败问题

Merge pull request !16 from 魔箭胖胖/master
This commit is contained in:
openeuler-ci-bot 2022-01-17 08:50:49 +00:00 committed by Gitee
commit 5c2962da64
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 1 deletions

View 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

View File

@ -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