Skip to content

Commit

Permalink
python312 compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangWaltenberger committed Apr 17, 2024
1 parent 13998bd commit 84d6575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smodels/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def version( return_tuple : bool = False ) -> Union[str,Tuple]:
if not return_tuple:
return l
import re
ret = re.split("\.|-",l)
ret = re.split("\\.|-",l)
for i,r in enumerate(ret):
try:
ret[i]=int(r)
Expand Down
2 changes: 1 addition & 1 deletion unittests/testAsciiGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class AsciiTest(unittest.TestCase):
def orig(self):
return """ /------------\\
return r""" /------------\
| q q |
| \ / |
| ----*---- |
Expand Down

0 comments on commit 84d6575

Please sign in to comment.