--- a/doc/conf.py Wed Feb 13 18:41:43 2019 +0100
+++ b/doc/conf.py Wed Feb 13 18:51:26 2019 +0100
@@ -28,9 +28,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with rql. If not, see <http://www.gnu.org/licenses/>.
-import sys
-import os
-
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
--- a/rql/__init__.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/__init__.py Wed Feb 13 18:51:26 2019 +0100
@@ -128,7 +128,6 @@
"""
# print('simplify', rqlst.as_string())
if rqlst.TYPE == 'select':
- from rql import nodes
for select in rqlst.children:
self._simplify(select)
--- a/rql/editextensions.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/editextensions.py Wed Feb 13 18:51:26 2019 +0100
@@ -19,7 +19,7 @@
__docformat__ = "restructuredtext en"
-from rql.nodes import Constant, Variable, VariableRef, Relation, make_relation
+from rql.nodes import Constant, VariableRef, Relation, make_relation
def switch_selection(rqlst, new_var, old_var):
--- a/rql/nodes.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/nodes.py Wed Feb 13 18:51:26 2019 +0100
@@ -24,16 +24,14 @@
__docformat__ = "restructuredtext en"
import sys
-from itertools import chain
from decimal import Decimal
from datetime import datetime, date, time, timedelta
-from time import localtime
from six import string_types
from rql import CoercionError, RQLException
from rql.base import BaseNode, Node, BinaryNode, LeafNode
-from rql.utils import (function_description, quote, uquote, common_parent,
+from rql.utils import (function_description, uquote, common_parent,
VisitableMixIn)
CONSTANT_TYPES = frozenset((None, 'Date', 'Datetime', 'Boolean', 'Float', 'Int',
--- a/rql/parser.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/parser.py Wed Feb 13 18:51:26 2019 +0100
@@ -46,13 +46,11 @@
"""
from __future__ import print_function
-from warnings import warn
from rql.nodes import *
from rql.stmts import Union, Select, Delete, Insert, Set
# Begin -- grammar generated by Yapps
-import sys
import re
from yapps import runtime
--- a/rql/pygments_ext.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/pygments_ext.py Wed Feb 13 18:51:26 2019 +0100
@@ -12,7 +12,7 @@
from pygments.lexer import RegexLexer, _mapping
from pygments.token import Punctuation, \
- Text, Comment, Operator, Keyword, Name, String, Number
+ Text, Operator, Keyword, Name, String, Number
__all__ = ['RqlLexer']
--- a/rql/stcheck.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/stcheck.py Wed Feb 13 18:51:26 2019 +0100
@@ -19,15 +19,13 @@
__docformat__ = "restructuredtext en"
-from itertools import chain
from logilab.common.graph import has_path
from logilab.database import UnknownFunction
from rql._exceptions import BadRQLQuery
from rql.utils import function_description
from rql.nodes import (Relation, VariableRef, Constant, Not, Exists, Function,
- And, Variable, Comparison, variable_refs, make_relation)
-from rql.stmts import Union
+ And, Comparison, variable_refs, make_relation)
def _var_graphid(subvarname, trmap, select):
--- a/rql/stmts.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/stmts.py Wed Feb 13 18:51:26 2019 +0100
@@ -31,7 +31,6 @@
from six import integer_types
from six.moves import range
-from logilab.common.decorators import cached
from logilab.common.deprecation import deprecated
from rql import BadRQLQuery, CoercionError, nodes
--- a/rql/undo.py Wed Feb 13 18:41:43 2019 +0100
+++ b/rql/undo.py Wed Feb 13 18:51:26 2019 +0100
@@ -19,7 +19,7 @@
__docformat__ = "restructuredtext en"
-from rql.nodes import Exists, VariableRef, Variable, BinaryNode
+from rql.nodes import Exists, VariableRef, BinaryNode
from rql.stmts import Select
--- a/test/unittest_editextensions.py Wed Feb 13 18:41:43 2019 +0100
+++ b/test/unittest_editextensions.py Wed Feb 13 18:51:26 2019 +0100
@@ -20,7 +20,6 @@
from rql import parse
from rql.nodes import Exists
-from rql.editextensions import *
class RQLUndoTestCase(TestCase):
--- a/test/unittest_parser.py Wed Feb 13 18:41:43 2019 +0100
+++ b/test/unittest_parser.py Wed Feb 13 18:51:26 2019 +0100
@@ -23,7 +23,7 @@
from yapps.runtime import print_error, SyntaxError
from rql.parser import Hercule, HerculeScanner
-from rql import BadRQLQuery, RQLSyntaxError, nodes, stmts, parse
+from rql import BadRQLQuery, RQLSyntaxError, nodes
from rql import parse
if PY2:
--- a/tools/rql_analyze.py Wed Feb 13 18:41:43 2019 +0100
+++ b/tools/rql_analyze.py Wed Feb 13 18:51:26 2019 +0100
@@ -19,8 +19,7 @@
from ginco.server.schema_readers import load_schema
from rql import RQLHelper
-from rql.analyze import AltETypeResolver, Alt2ETypeResolver, ETypeResolver, ETypeResolver2
-from pprint import pprint
+from rql.analyze import ETypeResolver, ETypeResolver2
import sys
--- a/tools/rql_cmp.py Wed Feb 13 18:41:43 2019 +0100
+++ b/tools/rql_cmp.py Wed Feb 13 18:51:26 2019 +0100
@@ -19,7 +19,7 @@
from rql.rqlparse import parse as cparse
from rql import parse
-from rql.compare2 import compare_tree, RQLCanonizer, make_canon_dict
+from rql.compare2 import make_canon_dict
import sys
from rql.nodes import *
from rql.stmts import *
--- a/tox.ini Wed Feb 13 18:41:43 2019 +0100
+++ b/tox.ini Wed Feb 13 18:51:26 2019 +0100
@@ -11,7 +11,7 @@
basepython = python3
deps =
flake8
-commands = flake8 {posargs:--ignore=E501,E741,F401,F401,F403,F405,F811,F821,F841,E123,E226,W503,E241,W504,E126,E121}
+commands = flake8 {posargs:--ignore=E501,E741,F403,F405,F811,F821,F841,E123,E226,W503,E241,W504,E126,E121}
[pytest]
python_files = *test_*.py