Ghanshyam Mann 632f15515f Fix is_same_callback() testing for python3.8
Python3.8 onwards, comparision of bound methods is
changed. It no longer decide the bound method's equality based
on their bounded objects equality instead it checks the identity
of their '__self__'.

Details about this behavior change in python 3.8
- https://bugs.python.org/issue1617161
- python-dev discussion: https://mail.python.org/pipermail/python-dev/2018-June/153959.html

So python3.8 onwards, 'strict' arg has no meaning. For backward compatibility
for python <3.8, we can keep the 'strict' arg but with deprecation warning.

Also modify the is_same_callback() unit tests to verify the 'strict'
arg based on python version.

Change-Id: I3e6d9bbceccacddd0e1a514bbe5d0722a3408ecb
Closes-Bug: #1841072
2020-09-07 16:25:32 -05:00
2020-06-04 14:08:43 +08:00
2020-06-02 20:41:31 +02:00
2019-04-19 19:27:54 +00:00
2018-07-04 08:28:15 +07:00
2019-02-13 14:28:34 +08:00
2020-02-10 18:35:07 +01:00
2020-07-24 17:37:03 +02:00
2020-04-02 15:10:56 +02:00

Team and repository tags

image

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.

Description
OpenStack library utils
Readme 8.1 MiB
Languages
Python 100%