def visit_subscript(self, node):
idx = node.slice<EOL>if idx.__class__.__name__.lower() == "<STR_LIT:index>":<EOL><INDENT>idx = idx.value<EOL><DEDENT>idxstr = idx.accept(self)<EOL>if idx.__class__.__name__.lower() == "<STR_LIT>" and idx.elts:<EOL><INDENT>idxstr = idxstr[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL><DEDENT>return "<STR_LIT>" % (self._precedence_parens(node, node.value), idxstr)<EOL>
return an astroid.Subscript node as string