r24067 by jghali - #16265: Don't use common "i" variable name in internal python code

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 9 17:15:06 UTC 2020


Author: jghali
Date: Fri Oct  9 17:15:05 2020
New Revision: 24067

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24067
Log:
#16265: Don't use common "i" variable name in internal python code

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptercore.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24067&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp	Fri Oct  9 17:15:05 2020
@@ -418,8 +418,8 @@
 				"    sys.stderr = scribus._bu\n"
 				"    sys.argv = ['scribus']\n" // this is the PySys_SetArgv replacement
 				"    scribus.mainInterpreter = True\n" // the scripter console runs everything in the main interpreter
-				"    for i in scribus.getval().splitlines():\n"
-				"        scribus._ia.push(i)\n"
+				"    for scribus._i_str in scribus.getval().splitlines():\n"
+				"        scribus._ia.push(scribus._i_str)\n"
 				"    scribus.retval(scribus._bu.getvalue())\n"
 				"    sys.stdout = sys.__stdout__\n"
 				"    sys.stderr = sys.__stderr__\n"

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptercore.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24067&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptercore.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptercore.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptercore.cpp	Fri Oct  9 17:15:05 2020
@@ -418,8 +418,8 @@
 				"    sys.stderr = scribus._bu\n"
 				"    sys.argv = ['scribus']\n" // this is the PySys_SetArgv replacement
 				"    scribus.mainInterpreter = True\n" // the scripter console runs everything in the main interpreter
-				"    for i in scribus.getval().splitlines():\n"
-				"        scribus._ia.push(i)\n"
+				"    for scribus._i_str in scribus.getval().splitlines():\n"
+				"        scribus._ia.push(scribus._i_str)\n"
 				"    scribus.retval(scribus._bu.getvalue())\n"
 				"    sys.stdout = sys.__stdout__\n"
 				"    sys.stderr = sys.__stderr__\n"




More information about the scribus-commit mailing list