Commit 1a03d997 authored by Akim Demaille's avatar Akim Demaille
Browse files

python: stop using __future__

We require Python 3, there is no point in using __future__.

* bin/vcsn-score, bin/vcsn-score-compare, build-aux/bin/registers-gen,
* python/vcsn/d3Widget.py, python/vcsn/ipython.py,
* python/vcsn/score.py, tests/bin/bench-power, tests/bin/rat.py,
* tests/bin/test.py, tests/bin/update-test, tests/python/automaton.py,
* tests/python/derivation.py, tests/python/efsm.py,
* tests/python/proper.py, tests/python/transpose.py:
here.
parent 30352c37
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
try:
import builtins
except:
......
#! /usr/bin/env python
from __future__ import print_function
import os, re, sys
import argparse
......
......@@ -24,7 +24,6 @@
#
# in the common case where the register name is the same as the
# function name, as exposed in dyn:: to the user.
from __future__ import print_function
import argparse
import os
import re
......
from __future__ import print_function, absolute_import
from IPython.display import display, Javascript
from IPython.html import widgets, nbextensions
#from IPython.html.nbextensions import install_nbextension
......
from __future__ import print_function, absolute_import
import re
from IPython.core.magic import (Magics, magics_class, line_cell_magic)
......
from __future__ import print_function
import re
from IPython.core.magic import (Magics, magics_class, line_magic)
......
......@@ -71,8 +71,6 @@
## 7 0.03 0.09 0.32 1.30 5.23 22.40 95.73
##
from __future__ import division, print_function
import vcsn
import timeit
......
#! /usr/bin/env python
from __future__ import print_function
import os, re, sys, vcsn
from test import *
......
from __future__ import print_function
from difflib import unified_diff as diff
import inspect
import os
......
......@@ -7,7 +7,6 @@
# usage:
# update-test --builddir=_build tests/python/*.py tests/python/determinize.dir/*
from __future__ import print_function
import argparse, os, re, sys
parser = argparse.ArgumentParser(description='Update test cases.')
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import vcsn
from test import *
......
#! /usr/bin/env python
from __future__ import print_function
import vcsn
from test import *
......
#! /usr/bin/env python
from __future__ import print_function
import subprocess
import vcsn
from test import *
......
#! /usr/bin/env python
from __future__ import print_function
import vcsn
from test import *
......
#! /usr/bin/env python
from __future__ import print_function
import vcsn
from test import *
......
......@@ -284,7 +284,7 @@ move_if_change = $(srcdir)/build-aux/bin/move-if-change --color --verbose
$(AM_V_GEN)$(mkdir_p) $(@D)
$(AM_V_at)rm -f $@ $@.tmp
$(AM_V_at)echo '$@ rebuilt because of: $?' >$@.tmp
$(AM_V_at)$(srcdir)/$(registers_gen) \
$(AM_V_at)$(PYTHON) $(srcdir)/$(registers_gen) \
--bridge lib/vcsn/dyn/context-printer-header-algo.cc.tmp \
--output lib/vcsn/algos/algos.cc.tmp \
--header %D%/dyn/registers.hh.tmp \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment