Skip to content

Commit 33091d1

Browse files
authored
wx12 and bonlengthdialog (#142)
* wx12 and bonlengthdialog * devutils/makedist import order
1 parent 686390a commit 33091d1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

devutils/makesdist

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import subprocess
1111
import sys
1212
import tarfile
1313

14+
from setup import FALLBACK_VERSION, versiondata
15+
1416
BASEDIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
1517
sys.path.insert(0, BASEDIR)
1618

17-
from setup import FALLBACK_VERSION, versiondata
18-
1919
timestamp = versiondata.getint("DEFAULT", "timestamp")
2020

2121
vfb = versiondata.get("DEFAULT", "version").split(".post")[0] + ".post0"

src/diffpy/pdfgui/gui/bondlengthdialog.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def onSpin(self, event): # wxGlade: BondLengthDialog.<event_handler>
219219
loop = True
220220
while loop:
221221
loop = False
222-
for l in letters:
223-
if newval == getattr(self, l):
222+
for letter in letters:
223+
if newval == getattr(self, letter):
224224
loop = True
225225
if increasing:
226226
newval += 1

src/diffpy/pdfgui/gui/wxextensions/wx12.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def Append(self, *args, **kwargs):
4646

4747

4848
if WX4:
49-
Menu = wx.Menu
49+
Menu = wx.Menu # noqa: F811
5050

5151
# ----------------------------------------------------------------------------
5252

@@ -58,7 +58,7 @@ class ListCtrl(wx.ListCtrl):
5858

5959

6060
if WX4:
61-
ListCtrl = wx.ListCtrl
61+
ListCtrl = wx.ListCtrl # noqa: F811
6262

6363
# ----------------------------------------------------------------------------
6464

@@ -70,7 +70,7 @@ class TreeCtrl(wx.TreeCtrl):
7070

7171

7272
if WX4:
73-
TreeCtrl = wx.TreeCtrl
73+
TreeCtrl = wx.TreeCtrl # noqa: F811
7474

7575
# wx.ToolBar -----------------------------------------------------------------
7676

0 commit comments

Comments
 (0)