def fix_code(source, options=None, encoding=None, apply_config=False):
 options = _get_options(options, apply_config)
 if (not isinstance(source, unicode)):
  source = source.decode((encoding or get_encoding()))
 sio = io.StringIO(source)
 return fix_lines(sio.readlines(), options=options)

def fix_code ( source , options = None , encoding = None , apply_config = False ) : options = _get_options ( options , apply_config ) if ( not isinstance ( source , unicode ) ) : source = source . decode ( ( encoding or get_encoding ( ) ) ) sio = io . StringIO ( source ) return fix_lines ( sio . readlines ( ) , options = options )
return fixed source code .