CLN: Remove unused import. Fix comment.

This commit is contained in:
Skipper Seabold 2015-05-08 09:25:55 -05:00
parent a4de0ebcd4
commit 932af821c5

View File

@ -15,7 +15,6 @@ import re
import ctypes
import platform
import collections
from io import BytesIO
import numpy as np
import scipy.sparse
@ -876,7 +875,7 @@ class XGBModel(XGBModelBase):
self._Booster = None
def __getstate__(self):
# can't pickle ctypes pointers so put _Booster in a BytesIO obj
# can't pickle ctypes pointers so put _Booster in a bytearray object
this = self.__dict__.copy() # don't modify in place
bst = this["_Booster"]
if bst is not None: