Skip to content

Commit b12b64a

Browse files
authored
Merge pull request #506 from seleniumbase/update_requirements-and-error-handling
Update dependencies and improve error-handling
2 parents b4038c8 + 9ad87cd commit b12b64a

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ wheel>=0.34.2
66
six==1.14.0
77
nose==1.3.7
88
ipdb==0.12.3
9-
idna==2.8
9+
idna==2.9
1010
chardet==3.0.4
1111
urllib3==1.25.8
12-
requests==2.22.0
12+
requests==2.23.0
1313
selenium==3.141.0
1414
pluggy>=0.13.1
1515
attrs>=19.3.0
@@ -39,7 +39,7 @@ pymysql==0.9.3
3939
pyotp==2.3.0
4040
boto==2.49.0
4141
cffi>=1.14.0
42-
tqdm>=4.42.1
42+
tqdm>=4.43.0
4343
flake8==3.7.9
4444
certifi>=2019.11.28
4545
pdfminer.six==20191110;python_version<"3.5"

seleniumbase/fixtures/base_case.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,6 +2038,10 @@ def print_unique_links_with_status_codes(self):
20382038

20392039
def __fix_unicode_conversion(self, text):
20402040
""" Fixing Chinese characters when converting from PDF to HTML. """
2041+
if sys.version_info[0] < 3:
2042+
# Update encoding for Python 2 users
2043+
reload(sys) # noqa
2044+
sys.setdefaultencoding('utf8')
20412045
text = text.replace(u'\u2f8f', u'\u884c')
20422046
text = text.replace(u'\u2f45', u'\u65b9')
20432047
text = text.replace(u'\u2f08', u'\u4eba')
@@ -2068,7 +2072,10 @@ def get_pdf_text(self, pdf, page=None, maxpages=None,
20682072
override - If the PDF file to be downloaded already exists in the
20692073
downloaded_files/ folder, that PDF will be used
20702074
instead of downloading it again. """
2071-
from pdfminer.high_level import extract_text
2075+
import warnings
2076+
with warnings.catch_warnings():
2077+
warnings.simplefilter("ignore", category=UserWarning)
2078+
from pdfminer.high_level import extract_text
20722079
if not password:
20732080
password = ''
20742081
if not maxpages:

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
setup(
4747
name='seleniumbase',
48-
version='1.35.6',
48+
version='1.35.7',
4949
description='Fast, Easy, and Reliable Browser Automation & Testing.',
5050
long_description=long_description,
5151
long_description_content_type='text/markdown',
@@ -88,10 +88,10 @@
8888
'six',
8989
'nose',
9090
'ipdb',
91-
'idna==2.8', # Must stay in sync with "requests"
91+
'idna==2.9', # Must stay in sync with "requests"
9292
'chardet==3.0.4', # Must stay in sync with "requests"
9393
'urllib3==1.25.8', # Must stay in sync with "requests"
94-
'requests==2.22.0',
94+
'requests==2.23.0',
9595
'selenium==3.141.0',
9696
'pluggy>=0.13.1',
9797
'attrs>=19.3.0',
@@ -121,7 +121,7 @@
121121
'pyotp==2.3.0',
122122
'boto==2.49.0',
123123
'cffi>=1.14.0',
124-
'tqdm>=4.42.1',
124+
'tqdm>=4.43.0',
125125
'flake8==3.7.9',
126126
'certifi>=2019.11.28',
127127
'pdfminer.six==20191110;python_version<"3.5"',

0 commit comments

Comments
 (0)