summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132020-12-16 00:44:00 +0530
committerrahulp132020-12-16 00:44:00 +0530
commitaf4fe5b34e291cfe3bb1dadb967a8a049bf9ee64 (patch)
tree30a2601e5a1f4b39fe03b830c3853431dbfe685e
parent0029b5d209d0187f29ba774ab3ef0f3ff04a3215 (diff)
downloadnghdl-af4fe5b34e291cfe3bb1dadb967a8a049bf9ee64.tar.gz
nghdl-af4fe5b34e291cfe3bb1dadb967a8a049bf9ee64.tar.bz2
nghdl-af4fe5b34e291cfe3bb1dadb967a8a049bf9ee64.zip
flake8 compliant
-rw-r--r--src/createKicadLibrary.py10
-rw-r--r--src/model_generation.py5
-rwxr-xr-xsrc/ngspice_ghdl.py3
3 files changed, 10 insertions, 8 deletions
diff --git a/src/createKicadLibrary.py b/src/createKicadLibrary.py
index e98d0d0..eed8f6d 100644
--- a/src/createKicadLibrary.py
+++ b/src/createKicadLibrary.py
@@ -36,8 +36,8 @@ class AutoSchematic(QtWidgets.QWidget):
elif (xmlFound == os.path.join(self.xml_loc, 'Nghdl')):
print('Library already exists...')
ret = QtWidgets.QMessageBox.warning(
- self.parent, "Warning", '''<b>Library files for this model ''' +
- '''already exist. Do you want to overwrite it?</b><br/>
+ self.parent, "Warning", '''<b>Library files for this model''' +
+ ''' already exist. Do you want to overwrite it?</b><br/>
If yes press ok, else cancel it and ''' +
'''change the name of your vhdl file.''',
QtWidgets.QMessageBox.Ok, QtWidgets.QMessageBox.Cancel
@@ -54,9 +54,9 @@ class AutoSchematic(QtWidgets.QWidget):
else:
print('Pre existing library...')
ret = QtWidgets.QMessageBox.critical(
- self.parent, "Error", '''<b>A standard library already exists ''' +
- '''with this name.</b><br/><b>Please change the name ''' +
- '''of your vhdl file and upload it again</b>''',
+ self.parent, "Error", '''<b>A standard library already ''' +
+ '''exists with this name.</b><br/><b>Please change the ''' +
+ '''name of your vhdl file and upload it again</b>''',
QtWidgets.QMessageBox.Ok
)
diff --git a/src/model_generation.py b/src/model_generation.py
index 5b7ed5f..bd96bc2 100644
--- a/src/model_generation.py
+++ b/src/model_generation.py
@@ -563,8 +563,9 @@ class ModelGeneration:
cmd_str1 = cmd_str1.replace("\\", "/")
cfunc.write(
- '\t\tsnprintf(command,1024, "start mintty.exe -t \\"VHDL-Testbench Logs\\" ' +
- '-h always bash.exe -c ' + '\\' + cmd_str1 + cmd_str2 + ', sock_port, my_ip);'
+ '\t\tsnprintf(command,1024, "start mintty.exe -t ' +
+ '\\"VHDL-Testbench Logs\\" -h always bash.exe -c ' +
+ '\\' + cmd_str1 + cmd_str2 + ', sock_port, my_ip);'
)
else:
cfunc.write(
diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py
index 7fc8c93..4db8062 100755
--- a/src/ngspice_ghdl.py
+++ b/src/ngspice_ghdl.py
@@ -274,7 +274,8 @@ class Mainwindow(QtWidgets.QWidget):
if os.name == "nt":
self.process.finished.connect(self.createSchematicLib)
- self.process.readyReadStandardOutput.connect(self.readAllStandard)
+ self.process \
+ .readyReadStandardOutput.connect(self.readAllStandard)
except BaseException:
print("There is error in 'make' ")