Clean up Python 2 compatibility code. (#5161)

This commit is contained in:
Jiaming Yuan
2019-12-27 18:34:53 +08:00
committed by GitHub
parent 61286c6e8f
commit 6848d0426f
9 changed files with 16 additions and 57 deletions

View File

@@ -1,14 +1,12 @@
# coding: utf-8
# pylint: disable= invalid-name
"""Distributed XGBoost Rabit related API."""
from __future__ import absolute_import
import sys
import ctypes
import pickle
import numpy as np
from .core import _LIB, c_str, STRING_TYPES
from .compat import pickle
def _init_rabit():