diff -r 684261ef2165 -r c71bd6f21748 eric6/Plugins/WizardPlugins/EricPluginWizard/Templates.py --- a/eric6/Plugins/WizardPlugins/EricPluginWizard/Templates.py Sun Sep 01 19:40:53 2019 +0200 +++ b/eric6/Plugins/WizardPlugins/EricPluginWizard/Templates.py Sun Sep 01 19:56:13 2019 +0200 @@ -38,7 +38,6 @@ ) needsRestart = {needsRestart} pyqtApi = 2 -python2Compatible = {python2Compatible} # End-Of-Header error = "" @@ -250,18 +249,13 @@ @return list of API filenames @rtype list of str """ - if language in ["Python3", "Python2", "Python"]: + if language in ["Python3", "Python"]: apisDir = \\ os.path.join(os.path.dirname(__file__), "APIs", "Python") apis = glob.glob(os.path.join(apisDir, '*.api')) - if language == "Python3": - apisDir = \\ - os.path.join(os.path.dirname(__file__), "APIs", "Python3") - apis.extend(glob.glob(os.path.join(apisDir, '*.api'))) - else: - apisDir = \\ - os.path.join(os.path.dirname(__file__), "APIs", "Python2") - apis.extend(glob.glob(os.path.join(apisDir, '*.api'))) + apisDir = \\ + os.path.join(os.path.dirname(__file__), "APIs", "Python3") + apis.extend(glob.glob(os.path.join(apisDir, '*.api'))) else: apis = [] return apis