From 20cd383504a69e3024ff26fddf99ea8f928c4d7e Mon Sep 17 00:00:00 2001 From: thorade Date: Mon, 27 Nov 2017 15:10:56 +0100 Subject: [PATCH] triple double-quoted docstring and do not use builtin names for variables --- .../ifcopenshell/geom/code_editor_pane.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/code_editor_pane.py b/src/ifcopenshell-python/ifcopenshell/geom/code_editor_pane.py index 760f36b76f..b64787f32b 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/code_editor_pane.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/code_editor_pane.py @@ -32,19 +32,19 @@ except BaseException: class StdoutRedirector(object): - '''A class for redirecting stdout to this Text widget.''' + """A class for redirecting stdout to this Text widget.""" def __init__(self, widget): self.widget = widget self.isError = False - def write(self, str): + def write(self, myStr): self.widget.moveCursor(QtGui.QTextCursor.End) if self.isError: self.widget.setTextColor(QtCore.Qt.red) else: self.widget.setTextColor(QtCore.Qt.white) - self.widget.insertPlainText(str) + self.widget.insertPlainText(myStr) self.widget.moveCursor(QtGui.QTextCursor.End)