From 7ebe4b5ab01a4e606624d71bc3b44867a49ede43 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 22 Mar 2018 19:12:04 +0000 Subject: [PATCH] autopep8, whitespace --- src/actual_pinmux.py | 2 +- src/pinmux_generator.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actual_pinmux.py b/src/actual_pinmux.py index ce1797d..e564f67 100644 --- a/src/actual_pinmux.py +++ b/src/actual_pinmux.py @@ -37,7 +37,7 @@ dedicated_wire = ''' endrule ''' # ============================================================ -digits = maketrans('0123456789', ' '*10) # delete space later +digits = maketrans('0123456789', ' ' * 10) # delete space later def cn(idx): diff --git a/src/pinmux_generator.py b/src/pinmux_generator.py index a0ba7fd..6147eb7 100644 --- a/src/pinmux_generator.py +++ b/src/pinmux_generator.py @@ -44,7 +44,7 @@ copyright = ''' Date of generation: ''' + time.strftime("%c") + ''' */ ''' -header = copyright+''' +header = copyright + ''' package pinmux; typedef struct{ @@ -150,7 +150,7 @@ with open("./bsv_src/pinmux.bsv", "w") as bsv_file: # ====================================================================== with open('bsv_src/PinTop.bsv', 'w') as bsv_file: - bsv_file.write(copyright+''' + bsv_file.write(copyright + ''' package PinTop; import pinmux::*; interface Ifc_PintTop; -- 2.30.2