import platform

# -----------------------------------------------------------------------------
# Guess platform we are running on
def current_platform():
    machine = platform.machine()
    if machine == 'armv5tejl':
        return 'ev3'
    elif machine == 'armv6l':
        return 'brickpi'
    else:
        return 'unsupported'

if current_platform() == 'brickpi':
    from .brickpi import *
else:
    # Import ev3 by default, so that it is covered by documentation.
    from .ev3 import *

import platform
import sys

# -----------------------------------------------------------------------------

if sys.version_info < (3,4):
    raise SystemError('Must be using Python 3.4 or higher')

# -----------------------------------------------------------------------------
# Guess platform we are running on

def current_platform():
    machine = platform.machine()
    if machine == 'armv5tejl':
        return 'ev3'
    elif machine == 'armv6l':
        return 'brickpi'
    else:
        return 'unsupported'

# -----------------------------------------------------------------------------

if current_platform() == 'brickpi':
    from .brickpi import *
else:
    # Import ev3 by default, so that it is covered by documentation.
    from .ev3 import *

Enforce the use of Python 3.4 or higher
Enforce the use of Python 3.4 or higher

  import platform
+ import sys
+ 
+ # -----------------------------------------------------------------------------
+ 
+ if sys.version_info < (3,4):
+     raise SystemError('Must be using Python 3.4 or higher')
  
  # -----------------------------------------------------------------------------
  # Guess platform we are running on
+ 
  def current_platform():
      machine = platform.machine()
      if machine == 'armv5tejl':
          return 'ev3'
      elif machine == 'armv6l':
          return 'brickpi'
      else:
          return 'unsupported'
  
+ # -----------------------------------------------------------------------------
+ 
  if current_platform() == 'brickpi':
      from .brickpi import *
  else:
      # Import ev3 by default, so that it is covered by documentation.
      from .ev3 import *
  
Enforce the use of Python 3.4 or higher
## Code Before:
import platform

# -----------------------------------------------------------------------------
# Guess platform we are running on
def current_platform():
    machine = platform.machine()
    if machine == 'armv5tejl':
        return 'ev3'
    elif machine == 'armv6l':
        return 'brickpi'
    else:
        return 'unsupported'

if current_platform() == 'brickpi':
    from .brickpi import *
else:
    # Import ev3 by default, so that it is covered by documentation.
    from .ev3 import *

## Instruction:
Enforce the use of Python 3.4 or higher
## Code After:
import platform
import sys

# -----------------------------------------------------------------------------

if sys.version_info < (3,4):
    raise SystemError('Must be using Python 3.4 or higher')

# -----------------------------------------------------------------------------
# Guess platform we are running on

def current_platform():
    machine = platform.machine()
    if machine == 'armv5tejl':
        return 'ev3'
    elif machine == 'armv6l':
        return 'brickpi'
    else:
        return 'unsupported'

# -----------------------------------------------------------------------------

if current_platform() == 'brickpi':
    from .brickpi import *
else:
    # Import ev3 by default, so that it is covered by documentation.
    from .ev3 import *
