Skip to content

Commit a0566c7

Browse files
committed
Cleaning the code
1 parent 59ff69e commit a0566c7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

python/console_sci.py

-4
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,12 @@ def updateHistory(self, command):
315315
self.historyIndex = len(self.history)
316316

317317
def writeHistoryFile(self):
318-
#hystoryFile = os.path.join(str(QDir.homePath()),".qgis","console_history.txt")
319318
wH = open(_historyFile, 'w')
320319
for s in self.history:
321320
wH.write(s + '\n')
322321
wH.close()
323322

324323
def readHistoryFile(self):
325-
#hystoryFile = os.path.join(str(QDir.homePath()),".qgis","console_history.txt")
326324
fileExist = QFile.exists(_historyFile)
327325
if fileExist:
328326
rH = open(_historyFile, 'r')
@@ -505,11 +503,9 @@ def runCommand(self, cmd):
505503
if cmd == '_save':
506504
self.writeHistoryFile()
507505
print QCoreApplication.translate("PythonConsole", "## History saved successfully ##")
508-
#del self.buffer[-1]
509506
elif cmd == '_clear':
510507
self.clearHistoryFile()
511508
print QCoreApplication.translate("PythonConsole", "## History cleared successfully ##")
512-
#del self.buffer[-1]
513509
output = sys.stdout.get_and_clean_data()
514510
if output:
515511
self.append(output)

0 commit comments

Comments
 (0)