Skip to content

Commit

Permalink
fix for python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogodet authored Apr 13, 2023
1 parent 3471587 commit 654c055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ qgisMaximumVersion=3.99
description=Plots terrain profile
about=This tool plots profile lines from raster layers or point vector layer with elevation field. Supports multiple lines as well as graph export to svg, pdf, png or csv file. Supports 3D polyline export to dxf.
category=Raster
version=4.2.4
version=4.2.5
author=Borys Jurgiel - Patrice Verchere - Etienne Tourigny - Javier Becerra
[email protected]

changelog=
4.2.5 : Fix for Python 3.11 (#84 Thanks @JaviBecerra)
4.2.4 : Add german translation (#80 Thanks @Brigggi)
4.2.3 : Fix for QGIS 3.30
4.2.2 : Fix TypeError in pyqtgraph with Python 3.10 (Thanks @luca-penasa)
Expand Down
2 changes: 1 addition & 1 deletion pyqtgraph/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
SI_PREFIX_EXPONENTS = dict([(SI_PREFIXES[i], (i-8)*3) for i in range(len(SI_PREFIXES))])
SI_PREFIX_EXPONENTS['u'] = -6

FLOAT_REGEX = re.compile(r'(?P<number>[+-]?((((\d+(\.\d*)?)|(\d*\.\d+))([eE][+-]?\d+)?)|((?i)(nan)|(inf))))\s*((?P<siPrefix>[u' + SI_PREFIXES + r']?)(?P<suffix>\w.*))?$')
FLOAT_REGEX = re.compile(r'(?P<number>[+-]?((((\d+(\.\d*)?)|(\d*\.\d+))([eE][+-]?\d+)?)|((?i:nan)|(inf))))\s*((?P<siPrefix>[u' + SI_PREFIXES + r']?)(?P<suffix>\w.*))?$')
INT_REGEX = re.compile(r'(?P<number>[+-]?\d+)\s*(?P<siPrefix>[u' + SI_PREFIXES + r']?)(?P<suffix>.*)$')


Expand Down

0 comments on commit 654c055

Please sign in to comment.