Python 3

def visit_NameConstant(self, node):
        """ Python 3 """
        nnode = self.dnode(node)
        copy_from_lineno_col_offset(
            nnode, str(node.value), self.bytes_pos_to_utf8, to=node)