Skip to content

Commit

Permalink
Merge pull request #330 from DimitriPapadopoulos/absolute_import
Browse files Browse the repository at this point in the history
No need for `absolute_import` in Python 3
  • Loading branch information
sapetnioc authored Nov 19, 2023
2 parents a601caf + feabf2c commit c2df192
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 28 deletions.
1 change: 0 additions & 1 deletion capsul/info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import os.path
import sys

Expand Down
1 change: 0 additions & 1 deletion capsul/pipeline/custom_nodes/loo_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


from __future__ import absolute_import
from capsul.process.node import Node
from soma.controller import Controller, Any, type_from_str

Expand Down
1 change: 0 additions & 1 deletion capsul/pipeline/custom_nodes/map_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


from __future__ import absolute_import
from capsul.process.node import Node, Plug
from soma.controller import Controller, File, undefined, field, type_from_str

Expand Down
1 change: 0 additions & 1 deletion capsul/pipeline/custom_nodes/strcat_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-------------------
"""

from __future__ import absolute_import
from capsul.process.node import Node
from soma.controller import Controller, Any, type_from_str

Expand Down
3 changes: 0 additions & 3 deletions capsul/pipeline/python_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
------------------------
"""

from __future__ import print_function
from __future__ import absolute_import

from soma.controller import Controller, undefined
import os
import sys
Expand Down
1 change: 0 additions & 1 deletion capsul/qt_apps/pipeline_viewer_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

# System import
from __future__ import absolute_import
import os
import logging

Expand Down
1 change: 0 additions & 1 deletion capsul/qt_apps/utils/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"""

# System import
from __future__ import absolute_import
import sys
import optparse
import logging
Expand Down
1 change: 0 additions & 1 deletion capsul/qt_apps/utils/fill_treectrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
----------------------
"""

from __future__ import absolute_import
import six

# Soma import
Expand Down
1 change: 0 additions & 1 deletion capsul/qt_apps/utils/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""

# Soma import
from __future__ import absolute_import
from soma.qt_gui import qt_backend

# Capsul import
Expand Down
2 changes: 0 additions & 2 deletions capsul/qt_gui/widgets/links_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
-------------------------------
"""

from __future__ import print_function

# System import
from __future__ import absolute_import
import os
Expand Down
2 changes: 0 additions & 2 deletions capsul/qt_gui/widgets/pipeline_user_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
-------------------------
"""

from __future__ import print_function

# System import
from __future__ import absolute_import
import sys
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/capsul_pipeline_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""

# System import
from __future__ import absolute_import
import os
from optparse import OptionParser
import logging
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/capsul_sphinx_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"""

# System import
from __future__ import absolute_import
import os
from optparse import OptionParser
import logging
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/capsul_usecases_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

"""Script to auto-generate use cases rst documentation.
"""
from __future__ import print_function

# System import
from __future__ import absolute_import
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/layoutdocgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
##########################################################################

# System import
from __future__ import absolute_import
import os
import sys
import six
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/load_pilots.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
##########################################################################

# System import
from __future__ import absolute_import
import os
import sys
import logging
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/resources/custom_ext/hidden_code_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
Released under the WTFPL (http://sam.zoy.org/wtfpl/).
"""

from __future__ import absolute_import
from docutils import nodes
from docutils.parsers.rst import directives
from sphinx.directives.code import CodeBlock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# System import
from __future__ import absolute_import
import logging

# Docutils import
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/resources/custom_ext/link_to_block.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# System import
from __future__ import absolute_import
import os

# Docutils import
Expand Down
4 changes: 0 additions & 4 deletions capsul/sphinxext/test/test_usercases_doc.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from __future__ import with_statement

# System import
from __future__ import absolute_import
from __future__ import print_function
import unittest

# Capsul import
Expand Down
1 change: 0 additions & 1 deletion capsul/sphinxext/usecasesdocgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
##########################################################################

# System import
from __future__ import absolute_import
import inspect
import ast
import os
Expand Down

0 comments on commit c2df192

Please sign in to comment.