Skip to content

Commit

Permalink
Use telnetlib3 instead of telnetlib (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
davide125 authored Oct 7, 2024
1 parent 7b023bf commit da344dd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pylint build
pip install -r requirements.txt
- name: Run linter
run: pylint -E tn3270
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
telnetlib3==2.0.4
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
author='Andrew Kay',
author_email='projects@ajk.me',
packages=['tn3270'],
install_requires=[],
install_requires=['telnetlib3'],
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion tn3270/telnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import logging
import socket
import selectors
from telnetlib import IAC, WILL, WONT, DO, DONT, SB, SE, BINARY, EOR, TTYPE, TN3270E
from telnetlib3 import IAC, WILL, WONT, DO, DONT, SB, SE, BINARY, EOR, TTYPE, TN3270E

# https://tools.ietf.org/html/rfc855
RFC855_EOR = b'\xef'
Expand Down

0 comments on commit da344dd

Please sign in to comment.