parameters: (source,
               aggressive=True, select=None, ignore=None, filename='')
return_statement: return refactor(source,
                      code_to_2to3(select=select,
                                   ignore=ignore),
                      filename=filename)
docstring: Fix various deprecated code (via lib2to3).
docstring_summary: Fix various deprecated code (via lib2to3).
docstring_tokens: Fix various deprecated code ( via lib2to3 ) .
function: def fix_2to3(source,
               aggressive=True, select=None, ignore=None, filename=''):
      """Fix various deprecated code (via lib2to3)."""
      if not aggressive:
          return source
  
      select = select or []
      ignore = ignore or []
  
      return refactor(source,
                      code_to_2to3(select=select,
                                   ignore=ignore),
                      filename=filename)
function_tokens: def fix_2to3 ( source , aggressive = True , select = None , ignore = None , filename = '' ) : if not aggressive : return source select = select or [ ] ignore = ignore or [ ] return refactor ( source , code_to_2to3 ( select = select , ignore = ignore ) , filename = filename )