parameters: (variable)
return_statement: return '${%s}' % variable
docstring: Produce a string that expands the shell variable.
docstring_summary: Produce a string that expands the shell variable.
docstring_tokens: Produce a string that expands the shell variable .
function: def expand_variable(variable):
      """Produce a string that expands the shell variable."""
      if os.name == 'nt':
          return '%{}%'.format(variable)
      return '${%s}' % variable
function_tokens: def expand_variable ( variable ) : if os . name == 'nt' : return '%{}%' . format ( variable ) return '${%s}' % variable