Marius Stanciu преди 6 години
родител
ревизия
e26953a6f3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      flatcamParsers/ParseExcellon.py

+ 1 - 1
flatcamParsers/ParseExcellon.py

@@ -790,7 +790,7 @@ class Excellon(Geometry):
                     # ## Units and number format # ##
                     # ## Units and number format # ##
                     match = self.units_re.match(eline)
                     match = self.units_re.match(eline)
                     if match:
                     if match:
-                        self.units = self.units = {"METRIC": "MM", "INCH": "IN"}[match.group(1)]
+                        self.units = {"METRIC": "MM", "INCH": "IN"}[match.group(1)]
                         self.zeros = match.group(2)  # "T" or "L". Might be empty
                         self.zeros = match.group(2)  # "T" or "L". Might be empty
                         self.excellon_format = match.group(3)
                         self.excellon_format = match.group(3)
                         if self.excellon_format:
                         if self.excellon_format: