Skip to content

Commit

Permalink
Imports break usage on windows (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers authored May 27, 2021
1 parent 212db75 commit c922704
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions textfsm/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
try:
# Import fails on Windows machines.
import fcntl
import termios
import tty
except (ImportError, ModuleNotFoundError):
pass
import getopt
import os
import re
import struct
import sys
import termios
import time
import tty
from builtins import object # pylint: disable=redefined-builtin
from builtins import str # pylint: disable=redefined-builtin

Expand Down Expand Up @@ -204,7 +204,7 @@ def _SplitWithSgr(text_line):
line_length = 0
for (index, token) in enumerate(token_list):
# Skip null tokens.
if token is '':
if token == '':
continue

if sgr_re.match(token):
Expand Down

0 comments on commit c922704

Please sign in to comment.