Changeset 77


Ignore:
Timestamp:
04/21/15 18:51:15 (10 years ago)
Author:
tim
Message:

filter out blank lines from input, a common user error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/bletchley-analyze

    r46 r77  
    5858    input_file = open(options.input_file, 'rb')
    5959
    60 blobs = input_file.read().rstrip(b'\n').replace(b'\r', b'').split(b'\n')
     60blobs = [b for b in input_file.read().rstrip(b'\n').replace(b'\r', b'').split(b'\n') if len(b) > 0]
    6161#print(repr(blobs))
    6262
Note: See TracChangeset for help on using the changeset viewer.