remove most of Python2 compatibility code

This commit is contained in:
Alexandre Detiste
2024-03-22 00:06:03 +01:00
committed by Scott Talbert
parent beb9932241
commit 0257f755cf
108 changed files with 220 additions and 2144 deletions

View File

@@ -1,7 +1,6 @@
import unittest
from unittests import wtc
import wx
import six
import os
pngFile = os.path.join(os.path.dirname(__file__), 'pointy.png')
@@ -70,10 +69,7 @@ class CursorTests(wtc.WidgetTestCase):
c2 = wx.Cursor(wx.CURSOR_ARROW)
self.assertTrue( c2.IsOk() )
if six.PY3:
self.assertTrue( c2.__bool__() == c2.IsOk() )
else:
self.assertTrue( c2.__nonzero__() == c2.IsOk() )
self.assertTrue( c2.__bool__() == c2.IsOk() )
# check that the __nonzero__ method can be used with if statements
nzcheck = False