Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1from thefuck.utils import for_app
2
3
4@for_app(['g++', 'clang++'])
5def match(command, settings):
6 return ('This file requires compiler and library support for the '
7 'ISO C++ 2011 standard.' in command.stderr or
8 '-Wc++11-extensions' in command.stderr)
9
10
11def get_new_command(command, settings):
12 return command.script + ' -std=c++11'
13

After

1from thefuck.utils import for_app
2
3
4@for_app(['g++', 'clang++'])
5def match(command):
6 return ('This file requires compiler and library support for the '
7 'ISO C++ 2011 standard.' in command.stderr or
8 '-Wc++11-extensions' in command.stderr)
9
10
11def get_new_command(command):
12 return command.script + ' -std=c++11'
13

Before

module
import_from_statement
from "from"
dotted_name
identifier "thefuck"
. "."
identifier "utils"
import "import"
dotted_name
identifier "for_app"
decorated_definition
decorator
@ "@"
call
identifier "for_app"
argument_list
( "("
list
[ "["
string
string_start "'"
string_content "g++"
string_end "'"
, ","
string
string_start "'"
string_content "clang++"
string_end "'"
] "]"
) ")"
function_definition
def "def"
identifier "match"
parameters
( "("
identifier "command"
, ","
identifier "settings"
) ")"
: ":"
block (+33 nodes collapsed)
function_definition
def "def"
identifier "get_new_command"
parameters
( "("
identifier "command"
, ","
identifier "settings"
) ")"
: ":"
block
return_statement
return "return"
binary_operator
attribute
identifier "command"
. "."
identifier "script"
+ "+"
string
string_start "'"
string_content " -std=c++11"
string_end "'"

After

module
import_from_statement
from "from"
dotted_name
identifier "thefuck"
. "."
identifier "utils"
import "import"
dotted_name
identifier "for_app"
decorated_definition
decorator
@ "@"
call
identifier "for_app"
argument_list
( "("
list
[ "["
string
string_start "'"
string_content "g++"
string_end "'"
, ","
string
string_start "'"
string_content "clang++"
string_end "'"
] "]"
) ")"
function_definition
def "def"
identifier "match"
parameters
( "("
identifier "command"
) ")"
: ":"
block (+33 nodes collapsed)
function_definition
def "def"
identifier "get_new_command"
parameters
( "("
identifier "command"
) ")"
: ":"
block
return_statement
return "return"
binary_operator
attribute
identifier "command"
. "."
identifier "script"
+ "+"
string
string_start "'"
string_content " -std=c++11"
string_end "'"