[1.5.x] Imported copyreg from six.moves