Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 3.12 #3

Closed
haas-daniel opened this issue Dec 3, 2023 · 2 comments
Closed

Support Python 3.12 #3

haas-daniel opened this issue Dec 3, 2023 · 2 comments

Comments

@haas-daniel
Copy link

Lssh throws the following errors in a python3.12 environment:

/usr/local/lib/lssh/hostlist.py:40: SyntaxWarning: invalid escape sequence '\s'
m = re.match('^\sHost\s+([\S]+)\s$', line, re.IGNORECASE)
/usr/local/lib/lssh/hostlist.py:48: SyntaxWarning: invalid escape sequence '\s'
m = re.match('^\sproxyjump\s+([\S]+)\s$', line, re.IGNORECASE)
/usr/local/lib/lssh/hostlist.py:51: SyntaxWarning: invalid escape sequence '\s'
m = re.match('^\s*#\slssh:(file)?keywords\s(.)$', line, re.IGNORECASE)
/usr/local/lib/lssh/hostlist.py:61: SyntaxWarning: invalid escape sequence '\s'
m = re.match('^\s*#\slssh:displayname\s+(\S.)$', line, re.IGNORECASE)
/usr/local/lib/lssh/hostlist.py:64: SyntaxWarning: invalid escape sequence '\s'
m = re.match('^\s*#\slssh:assignedcustomer\s+(\S.)$', line, re.IGNORECASE)
/usr/local/lib/lssh/config_validation.py:264: SyntaxWarning: invalid escape sequence '\S'
m = re.match('^(\s*)([a-zA-Z]+)(\s+)(\S.*)$', line)

leitwerk-ag added a commit that referenced this issue Dec 5, 2023
leitwerk-ag added a commit that referenced this issue Dec 5, 2023
@leitwerk-ag
Copy link
Owner

thx for your report! :)
can you please test https://github.com/leitwerk-ag/lssh/tree/dev-fix-3 ?

@haas-daniel
Copy link
Author

This works. thx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants