interrogate: enable true division in Python 2 as well

This allows using "from __future__ import division" and get the expected result for divisions in Python 2.

Fixes #529
This commit is contained in:
rdb 2019-03-03 10:29:39 +01:00
parent 7f4491cb98
commit fa6c066b2f

View File

@ -1690,7 +1690,6 @@ write_module_class(ostream &out, Object *obj) {
SlottedFunctionDef def;
def._answer_location = true_key;
def._wrapper_type = slotted_def._wrapper_type;
def._min_version = 0x03000000;
def._wrapper_name = func->_name + "_" + true_key;
slots[true_key] = def;
}