aboutsummaryrefslogtreecommitdiff
path: root/src/ee/kicad
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee/kicad')
-rw-r--r--src/ee/kicad/bom/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ee/kicad/bom/__init__.py b/src/ee/kicad/bom/__init__.py
index 0392d66..e993adb 100644
--- a/src/ee/kicad/bom/__init__.py
+++ b/src/ee/kicad/bom/__init__.py
@@ -10,6 +10,7 @@ __all__ = [
]
+# TODO: use ee.part.bom.split_ref
def split_ref(ref):
"""Split "C12" into a tuple that's useful for sorting by component reference.
@@ -23,11 +24,11 @@ def split_ref(ref):
val = groups[1]
rest = groups[2]
try:
- return (ref, int(val), rest)
+ return ref, int(val), rest
except ValueError:
pass
- return (ref, val, rest)
+ return ref, val, rest
split_ref.r = re.compile("([A-Za-z]+)([0-9]+)(.*)")