Преглед изворни кода

- more typos fixed in Excellon parser, slots processing

Marius Stanciu пре 5 година
родитељ
комит
441b553fa8
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 1 0
      CHANGELOG.md
  2. 3 3
      appParsers/ParseExcellon.py

+ 1 - 0
CHANGELOG.md

@@ -14,6 +14,7 @@ CHANGELOG for FlatCAM beta
 - fixed Excellon export to work with the new data structure
 - fixed all transformations in the Excellon object attributes; still need to fix the App Tools that creates or use Exellon objects
 - fixed some problems (typos, missing data) generated by latest changes
+- more typos fixed in Excellon parser, slots processing
 
 15.06.2020
 

+ 3 - 3
appParsers/ParseExcellon.py

@@ -552,7 +552,7 @@ class Excellon(Geometry):
                             if current_tool not in self.tools:
                                 self.tools[current_tool] = {}
                             if 'slots' in self.tools[current_tool]:
-                                self.tools[current_tool]['slots'].apend(slot)
+                                self.tools[current_tool]['slots'].append(slot)
                             else:
                                 self.tools[current_tool]['slots'] = [slot]
                             continue
@@ -722,7 +722,7 @@ class Excellon(Geometry):
                                     if current_tool not in self.tools:
                                         self.tools[current_tool] = {}
                                     if 'slots' in self.tools[current_tool]:
-                                        self.tools[current_tool]['slots'].apend(slot)
+                                        self.tools[current_tool]['slots'].append(slot)
                                     else:
                                         self.tools[current_tool]['slots'] = [slot]
                                     continue
@@ -802,7 +802,7 @@ class Excellon(Geometry):
                                 if current_tool not in self.tools:
                                     self.tools[current_tool] = {}
                                 if 'slots' in self.tools[current_tool]:
-                                    self.tools[current_tool]['slots'].apend(slot)
+                                    self.tools[current_tool]['slots'].append(slot)
                                 else:
                                     self.tools[current_tool]['slots'] = [slot]
                                 continue