original_docstring: Sets GPIO direction to sysfs.
  
      Args:
        direction: 'in' for input mode; 'out' for output mode.
      
docstring: Sets GPIO direction to sysfs.
docstring_tokens: Sets GPIO direction to sysfs .
code: def _SetDirection(self, direction):
      """Sets GPIO direction to sysfs.
  
      Args:
        direction: 'in' for input mode; 'out' for output mode.
      """
      with open(self._GetSysfsPath('direction'), 'w') as f:
        f.write(direction)
      if self._GetDirection() != direction:
        raise GpioError('Cannot configure GPIO port %d as %sput mode...' %
                        (self._port, direction))
code_tokens: def _SetDirection ( self , direction ) : with open ( self . _GetSysfsPath ( 'direction' ) , 'w' ) as f : f . write ( direction ) if self . _GetDirection ( ) != direction : raise GpioError ( 'Cannot configure GPIO port %d as %sput mode...' % ( self . _port , direction ) )
short_docstring: Sets GPIO direction to sysfs.
short_docstring_tokens: Sets GPIO direction to sysfs .
comment: """Sets GPIO direction to sysfs.
  
      Args:
        direction: 'in' for input mode; 'out' for output mode.
      """