Skip to content

Commit

Permalink
Improve Python 3.8 compatibility (elastic#1030)
Browse files Browse the repository at this point in the history
With this commit we upgrade two third-party libraries (py-cpuinfo and
tabulate) that produce the following deprecation warnings:

```
.venv/lib/python3.8/site-packages/tabulate.py:415
  .venv/lib/python3.8/site-packages/tabulate.py:415: DeprecationWarning: invalid escape sequence \[
    _invisible_codes_bytes = re.compile(b"\x1b\[\d+[;\d]*m|\x1b\[\d*\;\d*\;\d*m")  # ANSI color codes

.venv/lib/python3.8/site-packages/tabulate.py:977
  .venv/lib/python3.8/site-packages/tabulate.py:977: DeprecationWarning: invalid escape sequence \e
    """Format a fixed width table for pretty printing.

.venv/lib/python3.8/site-packages/cpuinfo/cpuinfo.py:492
  .venv/lib/python3.8/site-packages/cpuinfo/cpuinfo.py:492: DeprecationWarning: invalid escape sequence \d
    if re.match('^i\d86$|^x86$|^x86_32$|^i86pc$|^ia32$|^ia-32$|^bepc$', raw_arch_string):
```
  • Loading branch information
danielmitterdorfer authored Jul 28, 2020
1 parent cfe42ea commit 7ac7643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def str_from_file(name):
# License: BSD
"psutil==5.7.0",
# License: MIT
"py-cpuinfo==3.2.0",
"py-cpuinfo==7.0.0",
# License: MIT
"tabulate==0.8.5",
"tabulate==0.8.7",
# License: MIT
"jsonschema==3.1.1",
# License: BSD
Expand Down

0 comments on commit 7ac7643

Please sign in to comment.