From e8e1b5940cf7f8f3f47ab6d0b3d65006123ca8c8 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Sat, 4 Jul 2015 08:46:05 +0200 Subject: [PATCH] added .rstrip(' \t\n\r') to len(testdata) check now no clear lines are interpretet --- boswatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boswatch.py b/boswatch.py index be531a6..9e63beb 100755 --- a/boswatch.py +++ b/boswatch.py @@ -344,7 +344,7 @@ try: logging.debug("start testing") testFile = open(globals.script_path+"/testdata/testdata.txt","r") for testData in testFile: - if (len(testData) > 1) and ("#" not in testData[0]): + if (len(testData.rstrip(' \t\n\r')) > 1) and ("#" not in testData[0]): logging.info("Testdata: %s", testData.rstrip(' \t\n\r')) from includes import decoder decoder.decode(converter.freqToHz(args.freq), testData)