Undefined variable 'lore'
4from lore.util import timed
5from lore.estimators.holt_winters.holtwinters import additive
6
7require(lore.dependencies.SKLEARN) 8
9from sklearn.base import BaseEstimator
10
Undefined variable 'unicode'
288 config = configparser.SafeConfigParser()
289 if sys.version_info[0] == 2:
290 from io import StringIO
291 config.readfp(StringIO(unicode(conf)))292 else:
293 config.read_string(conf)
294 return config
Description
The variable name is not defined where it is used. This will lead to an error during the runtime. Make sure there is no typo. If the name was supposed to be imported, verify that you've actually imported the name.
Bad practice
import os.path
if os.path.exits('setup.cfg'): # misspelled `exists`
print('Found config file')
Preferred:
import os.path
if os.path.exists('setup.cfg'):
print('Found config file')