robotframework-telnetlibrary 1.0.1__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotframework-telnetlibrary
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: A Robot Framework library for communication via Telnet protocol
5
5
  Maintainer-email: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
6
6
  Project-URL: Homepage, https://github.com/MarketSquare/robotframework-telnet-library
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "robotframework-telnetlibrary"
3
- version = "1.0.1"
3
+ version = "1.0.2"
4
4
  description = "A Robot Framework library for communication via Telnet protocol"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.7"
@@ -279,7 +279,7 @@ class TelnetLibrary:
279
279
  """
280
280
  ROBOT_LIBRARY_SCOPE = 'SUITE'
281
281
  ROBOT_LIBRARY_DOC_FORMAT = 'Markdown'
282
- ROBOT_LIBRARY_VERSION = '1.0.1'
282
+ ROBOT_LIBRARY_VERSION = '1.0.2'
283
283
 
284
284
  def __init__(self, timeout='3 seconds', newline='CRLF',
285
285
  prompt=None, prompt_is_regexp=False,
@@ -1300,7 +1300,9 @@ class TelnetConnection(telnetlib.Telnet):
1300
1300
  self._opt_environ_user(opt, self._environ_user)
1301
1301
  elif cmd == telnetlib.DO and opt == telnetlib.NAWS and self._window_size:
1302
1302
  self._opt_window_size(opt, *self._window_size)
1303
- elif opt != telnetlib.NOOPT:
1303
+ # telnetlib passes NOOPT for commands without an option, such as SB and
1304
+ # SE. NOOPT is also option 0, BINARY, so check the command instead.
1305
+ elif cmd in (telnetlib.DO, telnetlib.DONT, telnetlib.WILL, telnetlib.WONT):
1304
1306
  self._opt_dont_and_wont(cmd, opt)
1305
1307
 
1306
1308
  def _opt_echo_on(self, opt):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotframework-telnetlibrary
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: A Robot Framework library for communication via Telnet protocol
5
5
  Maintainer-email: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
6
6
  Project-URL: Homepage, https://github.com/MarketSquare/robotframework-telnet-library