From 8eb1e5021ea4995fd89d1b6bfc66a2c36e6f7378 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Fri, 21 Jan 2022 12:42:52 +0100 Subject: [PATCH] Bugfix: invalid prewhitespace caused IndentationError --- bwwtolily.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bwwtolily.py b/bwwtolily.py index 0aa14e9..c186018 100755 --- a/bwwtolily.py +++ b/bwwtolily.py @@ -8,7 +8,7 @@ from argparse import ArgumentParser import sys,os,re,subprocess -version = "0.6.2" +version = "0.6.3" #make a print function to handle various version of python def do_print(string): @@ -143,12 +143,12 @@ class bwwtolily : self.tune_time_sig = result.group(1)+"/"+result.group(2) else: - result = self.sig_regex_common.search(file_text) - if result: - self.tune_time_sig = "2/2" + result = self.sig_regex_common.search(file_text) + if result: + self.tune_time_sig = "2/2" - else: - self.tune_time_sig = "4/4" + else: + self.tune_time_sig = "4/4" #get the tunes note info '''greedy, multiline, from first ampersand to !''' @@ -309,7 +309,7 @@ class bwwtolily : if start == 's': if not lower: - lower = 2 + lower = 2 fraction = "{}/{}".format(upper, lower)