Commit 2da9452c authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

remove unused import

pyflakes say they are unused. Tests suite confirms.
parent b747f2532e03
......@@ -34,7 +34,6 @@ __docformat__ = "restructuredtext en"
from logging import getLogger
from logilab.common.deprecation import deprecated, class_renamed
from logilab.common.decorators import classproperty
from logilab.common.logging_ext import set_log_methods
# first line imports for bw compat
......
......@@ -836,7 +836,6 @@ class ListVersionsInstanceCommand(InstanceCommand):
name = 'versions'
def versions_instance(self, appid):
from logilab.common.changelog import Version
config = cwcfg.config_for(appid)
# should not raise error if db versions don't match fs versions
config.repairing = True
......
......@@ -197,14 +197,14 @@ import sys
from os.path import join, dirname, realpath
from warnings import warn
from datetime import datetime, date, time, timedelta
from functools import partial, reduce
from functools import reduce
from logilab.common.decorators import cached, clear_cache
from logilab.common.deprecation import deprecated, class_deprecated
from logilab.common.modutils import cleanup_sys_modules
from logilab.common.registry import (
RegistryStore, Registry, obj_registries,
ObjectNotFound, NoSelectableObject, RegistryNotFound)
ObjectNotFound, RegistryNotFound)
from rql import RQLHelper
from yams.constraints import BASE_CONVERTERS
......
......@@ -75,7 +75,6 @@ import cPickle
import os.path as osp
import inspect
from collections import defaultdict
from contextlib import contextmanager
from copy import copy
from datetime import date, datetime
from time import asctime
......
......@@ -28,15 +28,14 @@ import glob
import warnings
from hashlib import sha1 # pylint: disable=E0611
from datetime import timedelta
from os.path import (abspath, join, exists, basename, dirname, normpath, split,
isfile, isabs, splitext, isdir, expanduser)
from os.path import (abspath, join, exists, split, isabs, isdir)
from functools import partial
from logilab.common.date import strptime
from logilab.common.decorators import cached, clear_cache
from cubicweb import ConfigurationError, ExecutionError, BadConnectionId
from cubicweb import CW_SOFTWARE_ROOT, schema, cwconfig
from cubicweb import ExecutionError, BadConnectionId
from cubicweb import schema, cwconfig
from cubicweb.server.serverconfig import ServerConfiguration
from cubicweb.etwist.twconfig import TwistedConfiguration
......
......@@ -122,7 +122,6 @@ def generate_schema_pot(w, cubedir=None):
def _generate_schema_pot(w, vreg, schema, libconfig=None):
from copy import deepcopy
from cubicweb.i18n import add_msg
from cubicweb.schema import NO_I18NCONTEXT, CONSTRAINTS
w('# schema pot file, generated on %s\n'
......
......@@ -25,7 +25,6 @@ from logilab.database import get_db_helper
from cubicweb.req import RequestSessionBase
from cubicweb.cwvreg import CWRegistryStore
from cubicweb.web.request import CubicWebRequestBase
from cubicweb.web.http_headers import Headers
from cubicweb.devtools import BASE_URL, BaseApptestConfiguration
......
......@@ -29,7 +29,6 @@ from logilab.common.testlib import unittest_main, with_tempdir, InnerTest, Tags
from logilab.common.shellutils import getlogin
import cubicweb
from cubicweb.view import StartupView
from cubicweb.web.controller import Controller
from cubicweb.devtools.httptest import CubicWebServerTC
......
......@@ -24,7 +24,6 @@ import datetime
from logilab.common.testlib import TestCase, unittest_main
from cubicweb.schema import Schema, EntitySchema
from cubicweb.devtools.fill import ValueGenerator, make_tel
from cubicweb.devtools import ApptestConfiguration
......
......@@ -18,12 +18,10 @@
"""unit tests for cubicweb.devtools.fill module
"""
import re
from logilab.common.testlib import TestCase, unittest_main
from cubicweb.schema import Schema, EntitySchema
import re
from cubicweb.devtools.fill import ValueGenerator, _ValueGenerator
ISODATE_SRE = re.compile('(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})$')
......
......@@ -20,7 +20,7 @@
import httplib
from logilab.common.testlib import Tags
from cubicweb.devtools.httptest import CubicWebServerTC, CubicWebServerConfig
from cubicweb.devtools.httptest import CubicWebServerTC
class TwistedCWAnonTC(CubicWebServerTC):
......
from logilab.common.testlib import unittest_main
from cubicweb.devtools.qunit import make_qunit_html, QUnitTestCase
from cubicweb.devtools.qunit import QUnitTestCase
from os import path as osp
......
......@@ -18,7 +18,6 @@
"""this module contains base classes and utilities for cubicweb tests"""
__docformat__ = "restructuredtext en"
import os
import sys
import re
import urlparse
......@@ -40,15 +39,14 @@ from logilab.common.decorators import cached, classproperty, clear_cache, iclass
from logilab.common.deprecation import deprecated, class_deprecated
from logilab.common.shellutils import getlogin
from cubicweb import ValidationError, NoSelectableObject, AuthenticationError
from cubicweb import ValidationError, NoSelectableObject
from cubicweb import cwconfig, dbapi, devtools, web, server
from cubicweb.utils import json
from cubicweb.sobjects import notification
from cubicweb.web import Redirect, application
from cubicweb.server.session import Session
from cubicweb.server.hook import SendMailOp
from cubicweb.devtools import SYSTEM_ENTITIES, SYSTEM_RELATIONS, VIEW_VALIDATORS
from cubicweb.devtools import BASE_URL, fake, htmlparser, DEFAULT_EMPTY_DB_ID
from cubicweb.devtools import fake, htmlparser, DEFAULT_EMPTY_DB_ID
from cubicweb.utils import json
# low-level utilities ##########################################################
......
......@@ -31,7 +31,6 @@
# All configuration values have a default value; values that are commented out
# serve to show the default value.
import sys, os
from os import path as osp
path = __file__
......
......@@ -19,8 +19,6 @@
"""
import sys
EXCLUDE_DIRS = ('test', 'tests', 'examples', 'data', 'doc', 'dist',
'.hg', 'migration')
if __name__ == '__main__':
......
......@@ -18,7 +18,6 @@
"""cubicweb-diseasome schema"""
from yams.buildobjs import EntityType, SubjectRelation, String, Int
from cubicweb.schemas.base import ExternalUri
class Disease(EntityType):
......
......@@ -19,10 +19,8 @@
__docformat__ = "restructuredtext en"
from warnings import warn
from logilab.common.deprecation import deprecated
from logilab.common.decorators import cached, classproperty
from logilab.common.decorators import classproperty
from cubicweb import Unauthorized
from cubicweb.entity import Entity
......
......@@ -26,12 +26,11 @@ from warnings import warn
from logilab.mtconverter import TransformError
from logilab.common.decorators import cached
from logilab.common.deprecation import class_deprecated
from cubicweb import ValidationError, view
from cubicweb.predicates import (implements, is_instance, relation_possible,
match_exception)
from cubicweb.interfaces import IDownloadable, ITree, IProgress, IMileStone
from cubicweb.interfaces import IDownloadable, ITree
class IEmailableAdapter(view.EntityAdapter):
......
......@@ -23,8 +23,6 @@ __docformat__ = "restructuredtext en"
from urlparse import urlsplit, urlunsplit
from datetime import datetime
from logilab.common.deprecation import deprecated
from cubicweb import UnknownProperty
from cubicweb.entity import _marker
from cubicweb.entities import AnyEntity, fetch_config
......
......@@ -27,7 +27,6 @@ from logilab.common.textutils import text_to_dict
from logilab.common.configuration import OptionError
from logilab.mtconverter import xml_escape
from cubicweb import ValidationError
from cubicweb.entities import AnyEntity, fetch_config
class _CWSourceCfgMixIn(object):
......
Markdown is supported
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