From 80b99e0323ba547dff13549bd9fd8942cb104bec Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 12 Feb 2018 11:10:57 +0100 Subject: [PATCH] Use double quotes instead of single quotes As per our code style. It doesn't say anything about single-character strings in particular. --- plugins/PostProcessingPlugin/scripts/PauseAtHeight.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py index 92a380388d..2cb41466b6 100644 --- a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py +++ b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py @@ -126,20 +126,19 @@ class PauseAtHeight(Script): for line in lines: if ";LAYER:0" in line: layers_started = True - if not layers_started: continue - if self.getValue(line, 'G') != 1 and self.getValue(line, 'G') != 0: + if self.getValue(line, "G") != 1 and self.getValue(line, "G") != 0: continue - current_z = self.getValue(line, 'Z') + current_z = self.getValue(line, "Z") if not got_first_g_cmd_on_layer_0: layer_0_z = current_z got_first_g_cmd_on_layer_0 = True - x = self.getValue(line, 'X', x) - y = self.getValue(line, 'Y', y) + x = self.getValue(line, "X", x) + y = self.getValue(line, "Y", y) if current_z is None: continue @@ -152,7 +151,7 @@ class PauseAtHeight(Script): prevLines = prevLayer.split("\n") current_e = 0. for prevLine in reversed(prevLines): - current_e = self.getValue(prevLine, 'E', -1) + current_e = self.getValue(prevLine, "E", -1) if current_e >= 0: break