
from ctypes import CDLL
import os
import sys
from warnings import warn

import pkg_resources


# Determine shared-library suffix
if sys.platform == 'darwin':
    _suffix = 'dylib'
else:
    _suffix = 'so'

if os.environ.get('READTHEDOCS', None) != 'True':
    # Open shared library
    _filename = pkg_resources.resource_filename(
        __name__, 'libopenmc.{}'.format(_suffix))
    _dll = CDLL(_filename)
else:
    # For documentation builds, we don't actually have the shared library
    # available. Instead, we create a mock object so that when the modules
    # within the openmc.capi package try to configure arguments and return
    # values for symbols, no errors occur
    try:
        from unittest.mock import Mock
    except ImportError:
        from mock import Mock
    _dll = Mock()

from .error import *
from .core import *
from .nuclide import *
from .material import *
from .cell import *
from .filter import *
from .tally import *
from .settings import settings

warn("The Python bindings to OpenMC's C API are still unstable "
     "and may change substantially in future releases.", FutureWarning)


from ctypes import CDLL
import os
import sys

import pkg_resources


# Determine shared-library suffix
if sys.platform == 'darwin':
    _suffix = 'dylib'
else:
    _suffix = 'so'

if os.environ.get('READTHEDOCS', None) != 'True':
    # Open shared library
    _filename = pkg_resources.resource_filename(
        __name__, 'libopenmc.{}'.format(_suffix))
    _dll = CDLL(_filename)
else:
    # For documentation builds, we don't actually have the shared library
    # available. Instead, we create a mock object so that when the modules
    # within the openmc.capi package try to configure arguments and return
    # values for symbols, no errors occur
    from unittest.mock import Mock
    _dll = Mock()

from .error import *
from .core import *
from .nuclide import *
from .material import *
from .cell import *
from .filter import *
from .tally import *
from .settings import settings

Remove FutureWarning for capi import
Remove FutureWarning for capi import

  
  from ctypes import CDLL
  import os
  import sys
- from warnings import warn
  
  import pkg_resources
  
  
  # Determine shared-library suffix
  if sys.platform == 'darwin':
      _suffix = 'dylib'
  else:
      _suffix = 'so'
  
  if os.environ.get('READTHEDOCS', None) != 'True':
      # Open shared library
      _filename = pkg_resources.resource_filename(
          __name__, 'libopenmc.{}'.format(_suffix))
      _dll = CDLL(_filename)
  else:
      # For documentation builds, we don't actually have the shared library
      # available. Instead, we create a mock object so that when the modules
      # within the openmc.capi package try to configure arguments and return
      # values for symbols, no errors occur
-     try:
-         from unittest.mock import Mock
+     from unittest.mock import Mock
-     except ImportError:
-         from mock import Mock
      _dll = Mock()
  
  from .error import *
  from .core import *
  from .nuclide import *
  from .material import *
  from .cell import *
  from .filter import *
  from .tally import *
  from .settings import settings
  
- warn("The Python bindings to OpenMC's C API are still unstable "
-      "and may change substantially in future releases.", FutureWarning)
- 
Remove FutureWarning for capi import
## Code Before:

from ctypes import CDLL
import os
import sys
from warnings import warn

import pkg_resources


# Determine shared-library suffix
if sys.platform == 'darwin':
    _suffix = 'dylib'
else:
    _suffix = 'so'

if os.environ.get('READTHEDOCS', None) != 'True':
    # Open shared library
    _filename = pkg_resources.resource_filename(
        __name__, 'libopenmc.{}'.format(_suffix))
    _dll = CDLL(_filename)
else:
    # For documentation builds, we don't actually have the shared library
    # available. Instead, we create a mock object so that when the modules
    # within the openmc.capi package try to configure arguments and return
    # values for symbols, no errors occur
    try:
        from unittest.mock import Mock
    except ImportError:
        from mock import Mock
    _dll = Mock()

from .error import *
from .core import *
from .nuclide import *
from .material import *
from .cell import *
from .filter import *
from .tally import *
from .settings import settings

warn("The Python bindings to OpenMC's C API are still unstable "
     "and may change substantially in future releases.", FutureWarning)

## Instruction:
Remove FutureWarning for capi import
## Code After:

from ctypes import CDLL
import os
import sys

import pkg_resources


# Determine shared-library suffix
if sys.platform == 'darwin':
    _suffix = 'dylib'
else:
    _suffix = 'so'

if os.environ.get('READTHEDOCS', None) != 'True':
    # Open shared library
    _filename = pkg_resources.resource_filename(
        __name__, 'libopenmc.{}'.format(_suffix))
    _dll = CDLL(_filename)
else:
    # For documentation builds, we don't actually have the shared library
    # available. Instead, we create a mock object so that when the modules
    # within the openmc.capi package try to configure arguments and return
    # values for symbols, no errors occur
    from unittest.mock import Mock
    _dll = Mock()

from .error import *
from .core import *
from .nuclide import *
from .material import *
from .cell import *
from .filter import *
from .tally import *
from .settings import settings
