8000 Format for pep8 and linters · pythonnet/pythonnet@1feb999 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1feb999

Browse files
committed
Format for pep8 and linters
Fix max min nameclash
1 parent 1320a73 commit 1feb999

23 files changed

+742
-774
lines changed

src/tests/leaktest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ def test_events(self):
203203
testob.PublicEvent -= EventTest.StaticHandler
204204

205205
# Function event handler
206-
dict = {'value': None}
206+
dict_ = {'value': None}
207207

208-
def handler(sender, args, dict=dict):
209-
dict['value'] = args.value
208+
def handler(sender, args, dict_=dict_):
209+
dict_['value'] = args.value
210210

211211
testob.PublicEvent += handler
212212
testob.PublicEvent(testob, TestEventArgs(10))

src/tests/stress.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@
1818
import time
1919

2020
from _compat import range, thread
21-
22-
23-
def dprint(msg):
24-
# Debugging helper to trace thread-related tests.
25-
if 1:
26-
print(msg)
21+
from utils import dprint
2722

2823

2924
class StressTest(object):

0 commit comments

Comments
 (0)
0