Make sure copy and deepcopy are returning same class (#460)

This should hold on Python 3.3 and newer (it does not hold on 3.2 and 2.7).

From documentation:
It does "copy" functions and classes (shallow and deeply), by returning the original object unchanged; this is compatible with the way these are treated by the pickle module.
1 file changed