Remove imports from __future__ module

This commit is contained in:
Nick Hall 2015-03-14 16:02:57 +00:00
parent ad073326e5
commit 3b5efdf7ae
189 changed files with 53 additions and 356 deletions

View File

@ -34,7 +34,6 @@ Module responsible for handling the command line arguments for Gramps.
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import os
import sys

View File

@ -34,7 +34,6 @@ Module responsible for handling the command line arguments for Gramps.
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, unicode_literals
import sys
import getopt
import logging

View File

@ -30,8 +30,6 @@ creating, and deleting of databases.
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import os
import sys
import time

View File

@ -31,8 +31,6 @@ Provides also two small base classes: :class:`CLIDbLoader`, :class:`CLIManager`
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
import os

View File

@ -32,7 +32,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import traceback
import os
import sys

View File

@ -21,8 +21,6 @@
""" Unittest for argparser.py """
from __future__ import print_function
import unittest
from ..argparser import ArgParser
import sys

View File

@ -20,8 +20,6 @@
""" CLI tests for gramps """
from __future__ import unicode_literals
import os
import unittest
import re

View File

@ -21,8 +21,6 @@
""" Unittest for user.py """
from __future__ import print_function
import unittest
from .. import user
from ...gen.test.user_test import TestUser

View File

@ -27,7 +27,6 @@ The User class provides basic interaction with the user.
# Python Modules
#
#------------------------------------------------------------------------
from __future__ import print_function, unicode_literals
import sys
#------------------------------------------------------------------------

View File

@ -25,8 +25,6 @@
Provides constants for other modules
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Standard python modules

View File

@ -22,8 +22,6 @@
Class handling language-specific selection for date parser and displayer.
"""
from __future__ import print_function, unicode_literals
#-------------------------------------------------------------------------
#
# set up logging

View File

@ -28,7 +28,6 @@ Arabic-specific classes for parsing and displaying dates.
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
import re
#-------------------------------------------------------------------------

View File

@ -22,7 +22,7 @@
"""
Bulgarian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -24,7 +24,7 @@
"""
Catalan-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Czech-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Danish-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
German-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -24,7 +24,6 @@
Greek-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Spanish-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Finnish-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -21,16 +21,15 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
"""
French-specific classes for parsing and displaying dates.
"""
#-------------------------------------------------------------------------
#
# Python modules
#
#-------------------------------------------------------------------------
"""
French-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
import re
#-------------------------------------------------------------------------

View File

@ -26,7 +26,7 @@
"""
Croatian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -24,7 +24,7 @@
"""
Italian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Lithuanian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Norwegian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -28,7 +28,6 @@
"""
Dutch-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
"""
Polish-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -24,7 +24,7 @@
"""
Portuguese-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Russian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Slovak-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -24,7 +24,7 @@
"""
Slovenian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -25,7 +25,7 @@
"""
Serbian-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -22,7 +22,7 @@
"""
Swedish-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -29,7 +29,6 @@ Ukrainian-specific classes for parsing and displaying dates.
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
import re
#-------------------------------------------------------------------------

View File

@ -19,16 +19,15 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
"""
Simplified-Chinese-specific classes for parsing and displaying dates.
"""
#-------------------------------------------------------------------------
#
# Python modules
#
#-------------------------------------------------------------------------
"""
Simplified-Chinese-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
import re
#-------------------------------------------------------------------------

View File

@ -19,16 +19,15 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
"""
Traditional-Chinese-specific classes for parsing and displaying dates.
"""
#-------------------------------------------------------------------------
#
# Python modules
#
#-------------------------------------------------------------------------
"""
Traditional-Chinese-specific classes for parsing and displaying dates.
"""
from __future__ import unicode_literals
import re
#-------------------------------------------------------------------------

View File

@ -25,7 +25,6 @@
U.S English date display class. Should serve as the base class for all
localized tasks.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#

View File

@ -21,7 +21,6 @@
"""
Class handling language-specific selection for date parser and displayer.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#

View File

@ -29,8 +29,6 @@ date parsing class. The default base class provides parsing for English.
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, unicode_literals
import re
import calendar

View File

@ -22,7 +22,6 @@
"""
Date strings to translate per each language for display and parsing.
"""
from __future__ import print_function, unicode_literals
#-------------------------------------------------------------------------
#

View File

@ -23,7 +23,6 @@
Deeper testing of some DateParser internals.
"""
from __future__ import print_function, unicode_literals
import unittest
from ...utils.grampslocale import GrampsLocale

View File

@ -32,7 +32,6 @@ Based on the Check Localized Date Displayer and Parser tool.
# standard python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals, division
import unittest
import sys

View File

@ -23,7 +23,6 @@
Deeper testing of some DateParser internals.
"""
from __future__ import print_function, unicode_literals
import unittest
from ...utils.grampslocale import GrampsLocale

View File

@ -19,8 +19,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from __future__ import print_function, unicode_literals
import unittest
from .. import _datestrings

View File

@ -27,7 +27,6 @@ BSDDBTxn class: Wrapper for BSDDB transaction-oriented methods
# BSDDBTxn
#
#-------------------------------------------------------------------------
from __future__ import print_function, with_statement
class BSDDBTxn(object):
"""

View File

@ -20,13 +20,6 @@
"""Exceptions generated by the Db package."""
#-------------------------------------------------------------------------
#
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
#-------------------------------------------------------------------------
#
# Gramps modules

View File

@ -29,8 +29,6 @@ Read classes for the Gramps databases.
# libraries
#
#-------------------------------------------------------------------------
from __future__ import print_function, with_statement
import sys
if sys.version_info[0] < 3:
import cPickle as pickle

View File

@ -18,8 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from __future__ import print_function
import unittest
import tempfile
import shutil

View File

@ -28,8 +28,6 @@ database.
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, with_statement
import sys
if sys.version_info[0] < 3:
import cPickle as pickle

View File

@ -29,8 +29,6 @@ undos and redos.
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, with_statement
import time, os
import sys
if sys.version_info[0] < 3:

View File

@ -28,7 +28,6 @@ methods to upgrade a database from version 13 to current version
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import with_statement, unicode_literals
import sys
import os
import re

View File

@ -30,7 +30,6 @@ This is used since Gramps version 3.0
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, with_statement, unicode_literals
import sys
if sys.version_info[0] < 3:
import cPickle as pickle

View File

@ -23,8 +23,6 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
from xml.sax import make_parser, SAXParseException
import os
import sys

View File

@ -23,8 +23,6 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, unicode_literals
from xml.sax import handler
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

View File

@ -23,7 +23,6 @@
"""
Package providing filtering framework for GRAMPS.
"""
from __future__ import with_statement
#------------------------------------------------------------------------
#

View File

@ -19,8 +19,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from __future__ import unicode_literals
import sys
import subprocess

View File

@ -23,13 +23,6 @@
"""Support for dates."""
#------------------------------------------------------------------------
#
# Python modules
#
#------------------------------------------------------------------------
from __future__ import unicode_literals, division
#------------------------------------------------------------------------
#
# Set up logging

View File

@ -21,7 +21,7 @@
"""
Provide calendar to sdn (serial date number) conversion.
"""
from __future__ import division, print_function
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -23,13 +23,6 @@ Base type for all gramps types.
"""
#------------------------------------------------------------------------
#
# Python modules
#
#------------------------------------------------------------------------
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# GRAMPS modules

View File

@ -24,7 +24,6 @@
"""
Person object for Gramps.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#

View File

@ -24,7 +24,6 @@
"""
Place object for Gramps.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#

View File

@ -21,8 +21,6 @@
"Handling formatted ('rich text') strings"
from __future__ import print_function
#-------------------------------------------------------------------------
#
# GRAMPS modules

View File

@ -28,7 +28,6 @@ Table Object class for Gramps.
# standard python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
import time
#-------------------------------------------------------------------------

View File

@ -22,8 +22,6 @@
Unittest that tests that part of the merge process that influences other
objects than the objects merging.
"""
from __future__ import print_function, unicode_literals
import unittest
import time
import os

View File

@ -24,8 +24,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import sys
import types

View File

@ -35,8 +35,6 @@ importers, exporters, quick reports, and document generators.
# Standard Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import os
import sys
import re

View File

@ -31,7 +31,6 @@ General option handling, including saving and parsing.
# Standard Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, unicode_literals
import os, io
import sys

View File

@ -29,8 +29,6 @@ and a register for the data of all plugins .
# Standard Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import os
import sys
import re

View File

@ -26,8 +26,6 @@
# Python modules
#
#------------------------------------------------------------------------
from __future__ import print_function
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
import io

View File

@ -29,7 +29,6 @@
# python modules
#
#------------------------------------------------------------------------
from __future__ import unicode_literals
import os
import sys
if sys.version_info[0] < 3:

View File

@ -32,7 +32,6 @@ Report option handling, including saving and parsing.
# Standard Python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
import os, io
import copy
from xml.sax.saxutils import escape

View File

@ -25,8 +25,6 @@ Classes for relationships.
# python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import os
import logging
LOG = logging.getLogger("gen.relationship")

View File

@ -23,8 +23,6 @@
"""
Provide a simplified database access interface to the Gramps database.
"""
from __future__ import with_statement, unicode_literals
from ..lib import (Person, Family, Event, Source, Place, Citation,
MediaObject, Repository, Note, Date, Tag)
from ..lib.handle import Handle

View File

@ -21,8 +21,6 @@
""" Unittest for constfunc.py """
from __future__ import print_function
import unittest
from .. import constfunc

View File

@ -21,8 +21,6 @@
""" Unittest for user.py """
from __future__ import print_function
import unittest
from .. import user

View File

@ -25,7 +25,7 @@ The goal is to have this module not depend on any other gramps module.
That way, e.g. database classes can safely depend on that without
other Gramps baggage.
"""
from __future__ import division
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -29,7 +29,6 @@ This package implements access to Gramps configuration.
# System imports
#
#---------------------------------------------------------------
from __future__ import print_function, unicode_literals
import os
import sys
import time

View File

@ -24,8 +24,6 @@
Debugging utilities
"""
from __future__ import print_function
#-------------------------------------------------------------------------
#
# Debugging utilities

View File

@ -25,8 +25,6 @@
# python modules
#
#------------------------------------------------------------------------
# If you enable unicode_literals, some stuff needs fixing for win+py2, see #7162
#from __future__ import print_function, unicode_literals
import gettext
import sys
import os

View File

@ -27,8 +27,6 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function, unicode_literals
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
import math

View File

@ -17,7 +17,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from __future__ import unicode_literals
import sys
import io
import os

View File

@ -19,8 +19,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from __future__ import print_function, unicode_literals
import unittest
import sys

View File

@ -21,8 +21,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Standard python modules

View File

@ -25,9 +25,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
import os
import sys
import io

View File

@ -22,13 +22,6 @@
Provide autocompletion functionality.
"""
#-------------------------------------------------------------------------
#
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
#-------------------------------------------------------------------------
#
# GNOME modules

View File

@ -27,8 +27,6 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import random
import os
from xml.sax.saxutils import escape

View File

@ -45,8 +45,6 @@
"""
from __future__ import print_function
#-------------------------------------------------------------------------
#
# set up logging

View File

@ -24,8 +24,6 @@
# Python classes
#
#-------------------------------------------------------------------------
from __future__ import print_function
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

View File

@ -31,8 +31,6 @@ The DateEditor provides a dialog in which the date can be
unambiguously built using UI controls such as menus and spin buttons.
"""
from __future__ import unicode_literals
#-------------------------------------------------------------------------
#
# Python modules

View File

@ -26,8 +26,6 @@
# python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.sgettext
import logging

View File

@ -24,8 +24,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import sys
import os
import logging

View File

@ -24,8 +24,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import unicode_literals
from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import GdkPixbuf

View File

@ -29,8 +29,6 @@ the create/deletion of dialog windows.
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import os
import sys
if sys.version_info[0] < 3:

View File

@ -27,7 +27,6 @@
"""
Specific option handling for a GUI.
"""
from __future__ import unicode_literals
#------------------------------------------------------------------------
#

View File

@ -26,8 +26,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import traceback
import os
import sys

View File

@ -29,8 +29,6 @@ This module provides the functions to build the quick report context menu's
# python modules
#
#------------------------------------------------------------------------
from __future__ import print_function
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
import sys

View File

@ -29,8 +29,6 @@ Provide a simplified table creation interface
# Standard python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
import sys
if sys.version_info[0] < 3:
import cPickle as pickle

View File

@ -30,8 +30,6 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

View File

@ -27,8 +27,6 @@
# Python modules
#
#-------------------------------------------------------------------------
from __future__ import print_function
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
import logging

View File

@ -21,8 +21,6 @@
""" Unittest for user.py """
from __future__ import print_function
import unittest
from .. import user
from ...gen.test.user_test import TestUser

Some files were not shown because too many files have changed in this diff Show More