
from cobs._cobsext import *
_using_extension = True


try:
    from cobs._cobsext import *
    _using_extension = True
except ImportError:
    from cobs._cobspy import *
    _using_extension = False

Change Python 2.x import to fall-back to pure Python code if it can't load the C extension.
Change Python 2.x import to fall-back to pure Python code if it can't load the C extension.

  
+ try:
- from cobs._cobsext import *
+     from cobs._cobsext import *
- _using_extension = True
+     _using_extension = True
+ except ImportError:
+     from cobs._cobspy import *
+     _using_extension = False
  
Change Python 2.x import to fall-back to pure Python code if it can't load the C extension.
## Code Before:

from cobs._cobsext import *
_using_extension = True

## Instruction:
Change Python 2.x import to fall-back to pure Python code if it can't load the C extension.
## Code After:

try:
    from cobs._cobsext import *
    _using_extension = True
except ImportError:
    from cobs._cobspy import *
    _using_extension = False
