From: Luke Kenneth Casson Leighton Date: Thu, 22 Mar 2018 19:12:04 +0000 (+0000) Subject: autopep8, whitespace X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ebe4b5ab01a4e606624d71bc3b44867a49ede43;p=pinmux.git autopep8, whitespace --- 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;