component(developer/golang-123): Add Component
[oi-userland.git] / components / python / pycmd / patches / 05-SyntaxWarning-is.patch
blob1595478b87dede866acd7c023d5d21c7b2e9a32d
1 --- pycmd-1.2/pycmd/pyconvert_unittest.py.orig
2 +++ pycmd-1.2/pycmd/pyconvert_unittest.py
3 @@ -114,12 +114,12 @@
4 else:
5 message = None
7 - if argnum is 0 or (argnum is 1 and argnum is message_pos): #unittest fail()
8 + if argnum == 0 or (argnum == 1 and argnum == message_pos): #unittest fail()
9 string = ''
10 if message:
11 message = ' ' + message
13 - elif message_pos is 4: # assertAlmostEqual & friends
14 + elif message_pos == 4: # assertAlmostEqual & friends
15 try:
16 pos = argl[2].lstrip()
17 except IndexError: