Removed some unused optional features.
@@ -13,21 +13,6 @@ def optional_import(*package_names):
return False, None
-# Get libc in a cross-platform way and use it to also flush the c stdio buffers
-# credit to J.F. Sebastians SO answer from here:
-# http://stackoverflow.com/a/22434262/1388435
-try:
- import ctypes
- from ctypes.util import find_library
-except ImportError:
- has_libc, libc = False, None
-else:
- try:
- has_libc, libc = True, ctypes.cdll.msvcrt # Windows
- except OSError:
- has_libc, libc = True, ctypes.cdll.LoadLibrary(find_library('c'))
-
-
has_numpy, np = optional_import('numpy')
has_yaml, yaml = optional_import('yaml')
has_pandas, pandas = optional_import('pandas')
@@ -36,6 +21,4 @@ has_sqlalchemy = modules_exist('sqlalchemy')
has_mako = modules_exist('mako')
has_gitpython = modules_exist('git')
has_tinydb = modules_exist('tinydb', 'tinydb_serialization', 'hashfs')
-has_requests = modules_exist('requests')
has_tensorflow = modules_exist("tensorflow")
-has_telegram = modules_exist('telegram')
