
try:
    import RPi.GPIO
    from .raspberry_pi import *
except RuntimeError:
    print(
    '----------------------------------------------------------------------------')
    print(
    ' WARNING: RPi.GPIO can only be run on the RPi. Falling back to mock objects.')
    print(
    '----------------------------------------------------------------------------')
except ImportError:
    print('-------------------------------------------------------------------')
    print(' WARNING: RPi.GPIO library not found. Falling back to mock objects.')
    print('-------------------------------------------------------------------')
    from .gpio_mock import *


try:
    import RPi.GPIO
    from .raspberry_pi import *
except RuntimeError:
    print(
    '----------------------------------------------------------------------------')
    print(
    ' WARNING: RPi.GPIO can only be run on the RPi. Falling back to mock objects.')
    print(
    '----------------------------------------------------------------------------')
    from .gpio_mock import *
except ImportError:
    print('-------------------------------------------------------------------')
    print(' WARNING: RPi.GPIO library not found. Falling back to mock objects.')
    print('-------------------------------------------------------------------')
    from .gpio_mock import *

Fix import errors on non-RPi platforms
Fix import errors on non-RPi platforms

  
  try:
      import RPi.GPIO
      from .raspberry_pi import *
  except RuntimeError:
      print(
      '----------------------------------------------------------------------------')
      print(
      ' WARNING: RPi.GPIO can only be run on the RPi. Falling back to mock objects.')
      print(
      '----------------------------------------------------------------------------')
+     from .gpio_mock import *
  except ImportError:
      print('-------------------------------------------------------------------')
      print(' WARNING: RPi.GPIO library not found. Falling back to mock objects.')
      print('-------------------------------------------------------------------')
      from .gpio_mock import *
  
Fix import errors on non-RPi platforms
## Code Before:

try:
    import RPi.GPIO
    from .raspberry_pi import *
except RuntimeError:
    print(
    '----------------------------------------------------------------------------')
    print(
    ' WARNING: RPi.GPIO can only be run on the RPi. Falling back to mock objects.')
    print(
    '----------------------------------------------------------------------------')
except ImportError:
    print('-------------------------------------------------------------------')
    print(' WARNING: RPi.GPIO library not found. Falling back to mock objects.')
    print('-------------------------------------------------------------------')
    from .gpio_mock import *

## Instruction:
Fix import errors on non-RPi platforms
## Code After:

try:
    import RPi.GPIO
    from .raspberry_pi import *
except RuntimeError:
    print(
    '----------------------------------------------------------------------------')
    print(
    ' WARNING: RPi.GPIO can only be run on the RPi. Falling back to mock objects.')
    print(
    '----------------------------------------------------------------------------')
    from .gpio_mock import *
except ImportError:
    print('-------------------------------------------------------------------')
    print(' WARNING: RPi.GPIO library not found. Falling back to mock objects.')
    print('-------------------------------------------------------------------')
    from .gpio_mock import *
