Fixed a bug in Shell.py. eric7

Mon, 14 Nov 2022 11:33:53 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 14 Nov 2022 11:33:53 +0100
branch
eric7
changeset 9511
263a664d55dc
parent 9510
b1c92d588478
child 9512
6e29913ba7b6

Fixed a bug in Shell.py.

src/eric7/QScintilla/Shell.py file | annotate | diff | comparison | revisions
--- a/src/eric7/QScintilla/Shell.py	Sun Nov 13 17:34:19 2022 +0100
+++ b/src/eric7/QScintilla/Shell.py	Mon Nov 14 11:33:53 2022 +0100
@@ -853,17 +853,17 @@
         debug client side.
         """
         if self.passive:
-            self.__writeBanner("", "", "", "")
+            self.__writeBanner("", "", "")
         else:
             self.dbs.remoteBanner()
 
-    def __writeBanner(self, version, platform, venvName):
+    def __writeBanner(self, versionStr, platformStr, venvName):
         """
         Private method to write a banner with info from the debug client.
 
-        @param version interpreter version string
+        @param versionStr interpreter version string
         @type str
-        @param platform platform of the remote interpreter
+        @param platformStr platform of the remote interpreter
         @type str
         @param venvName name of the virtual environment
         @type str
@@ -874,11 +874,11 @@
             self.__write(self.tr("\nNot connected"))
         else:
             self.__currentVenv = venvName
-            version = version.replace("#", self.tr("No."))
-            if platform != "":
-                self.__write(self.tr("{0} on {1}").format(version, platform))
+            versionStr = versionStr.replace("#", self.tr("No."))
+            if platformStr != "":
+                self.__write(self.tr("{0} on {1}").format(versionStr, platformStr))
             else:
-                self.__write(version)
+                self.__write(versionStr)
             if venvName:
                 self.__write("\n[{0}]".format(venvName))
 

eric ide

mercurial