From 5be7aa383b3982be2ceacfa747e2f2f3a2ea90bc Mon Sep 17 00:00:00 2001 From: anjalijaiswal08 Date: Thu, 27 Jun 2019 11:07:04 +0530 Subject: Pep8 changes --- src/subcircuit/uploadSub.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/subcircuit/uploadSub.py b/src/subcircuit/uploadSub.py index a59066a7..dfabea8d 100644 --- a/src/subcircuit/uploadSub.py +++ b/src/subcircuit/uploadSub.py @@ -35,19 +35,22 @@ class UploadSub(QtGui.QWidget): if ok: projname = (str(text)) create_subcircuit = projname - subcircuit_path = (os.path.join(os.path.abspath('..'), 'SubcircuitLibrary', create_subcircuit)) + subcircuit_path = (os.path.join(os.path.abspath('..'), + 'SubcircuitLibrary', create_subcircuit)) if subcircuit_path == "": reply = "NONE" else: - reply = self.obj_validation.validateNewproj(str(subcircuit_path)) + reply = self.obj_validation.validateNewproj(str( + subcircuit_path)) if reply == "VALID": print("Validated: Creating subcircuit directory") os.mkdir(subcircuit_path) editfile = str( QtGui.QFileDialog.getOpenFileName( - None, "Upload File", os.path.expanduser("~"), (projname + ".sub"))) + None, "Upload File", os.path.expanduser("~"), + (projname + ".sub"))) upload = os.path.basename(editfile) print("===================") @@ -64,7 +67,10 @@ class UploadSub(QtGui.QWidget): subcircuit = (os.path.join(subcircuit_path, upload)) print("Final path of file is " + subcircuit) print("===================") - print("Copying file from " + editfile + " to " + subcircuit) + print("Copying file from " + + editfile + + " to " + + subcircuit) print("===================") shutil.copy(editfile, subcircuit) else: -- cgit