aboutsummaryrefslogtreecommitdiff
path: root/common/8b10b_test_vector_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'common/8b10b_test_vector_gen.py')
-rwxr-xr-xcommon/8b10b_test_vector_gen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/8b10b_test_vector_gen.py b/common/8b10b_test_vector_gen.py
index 12460c1..6c0250b 100755
--- a/common/8b10b_test_vector_gen.py
+++ b/common/8b10b_test_vector_gen.py
@@ -1,6 +1,9 @@
#!/usr/bin/env python3
def parse_size(s):
+ if s is None:
+ return s
+
s = s.lower()
SUFFIXES = {'k': 1e3, 'm': 1e6, 'g': 1e9}
if s[-1] in SUFFIXES: