
from __future__ import print_function
import sys
import os

import linescan

testFile = os.path.join("test", "testfile.txt")

if __name__ == "__main__":
    line = linescan.scan(testFile, 5, "utf_8")
    print(line)
    lines = linescan.scanlines(testFile, 8, 12, "cp1252")
    print(lines)
    thisshouldbefalse = linescan.scan(testFile, 55)
    print(thisshouldbefalse)


from __future__ import print_function
import os

import linescan

testFile = os.path.join("test", "testfile.txt")

if __name__ == "__main__":
    line = linescan.scan(testFile, 5, "utf_8")
    print(line)
    lines = linescan.scanlines(testFile, 8, 12, "cp1252")
    print(lines)
    thisshouldbefalse = linescan.scan(testFile, 55)
    print(thisshouldbefalse)

Fix F401 error (module imported but unused)
Fix F401 error (module imported but unused)

[ci skip]
  
  from __future__ import print_function
- import sys
  import os
  
  import linescan
  
  testFile = os.path.join("test", "testfile.txt")
  
  if __name__ == "__main__":
      line = linescan.scan(testFile, 5, "utf_8")
      print(line)
      lines = linescan.scanlines(testFile, 8, 12, "cp1252")
      print(lines)
      thisshouldbefalse = linescan.scan(testFile, 55)
      print(thisshouldbefalse)
  
Fix F401 error (module imported but unused)
## Code Before:

from __future__ import print_function
import sys
import os

import linescan

testFile = os.path.join("test", "testfile.txt")

if __name__ == "__main__":
    line = linescan.scan(testFile, 5, "utf_8")
    print(line)
    lines = linescan.scanlines(testFile, 8, 12, "cp1252")
    print(lines)
    thisshouldbefalse = linescan.scan(testFile, 55)
    print(thisshouldbefalse)

## Instruction:
Fix F401 error (module imported but unused)
## Code After:

from __future__ import print_function
import os

import linescan

testFile = os.path.join("test", "testfile.txt")

if __name__ == "__main__":
    line = linescan.scan(testFile, 5, "utf_8")
    print(line)
    lines = linescan.scanlines(testFile, 8, 12, "cp1252")
    print(lines)
    thisshouldbefalse = linescan.scan(testFile, 55)
    print(thisshouldbefalse)
