mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Use double quotes instead of single quotes
As per our code style. It doesn't say anything about single-character strings in particular.
This commit is contained in:
parent
0e23fb15af
commit
80b99e0323
1 changed files with 5 additions and 6 deletions
|
@ -126,20 +126,19 @@ class PauseAtHeight(Script):
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if ";LAYER:0" in line:
|
if ";LAYER:0" in line:
|
||||||
layers_started = True
|
layers_started = True
|
||||||
|
|
||||||
if not layers_started:
|
if not layers_started:
|
||||||
continue
|
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
|
continue
|
||||||
|
|
||||||
current_z = self.getValue(line, 'Z')
|
current_z = self.getValue(line, "Z")
|
||||||
if not got_first_g_cmd_on_layer_0:
|
if not got_first_g_cmd_on_layer_0:
|
||||||
layer_0_z = current_z
|
layer_0_z = current_z
|
||||||
got_first_g_cmd_on_layer_0 = True
|
got_first_g_cmd_on_layer_0 = True
|
||||||
|
|
||||||
x = self.getValue(line, 'X', x)
|
x = self.getValue(line, "X", x)
|
||||||
y = self.getValue(line, 'Y', y)
|
y = self.getValue(line, "Y", y)
|
||||||
if current_z is None:
|
if current_z is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -152,7 +151,7 @@ class PauseAtHeight(Script):
|
||||||
prevLines = prevLayer.split("\n")
|
prevLines = prevLayer.split("\n")
|
||||||
current_e = 0.
|
current_e = 0.
|
||||||
for prevLine in reversed(prevLines):
|
for prevLine in reversed(prevLines):
|
||||||
current_e = self.getValue(prevLine, 'E', -1)
|
current_e = self.getValue(prevLine, "E", -1)
|
||||||
if current_e >= 0:
|
if current_e >= 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue