summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-03-05 20:29:05 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-03-05 20:29:05 -0500
commit201c4a60e4b8af56d9c02a3675d1443ba4171c89 (patch)
tree07f9f6345e6c67e60e86407b9cb4ba4dc0e94f66 /lib/sqlalchemy
parent66373c58118dc70ef59ff60c0516ef158966c47b (diff)
downloadsqlalchemy-201c4a60e4b8af56d9c02a3675d1443ba4171c89.tar.gz
run a black run
fix some pep8s that snuck in Change-Id: Ied282007df30a52d232b1ba88659f2a123ff380f
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/__init__.py2
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py2
-rw-r--r--lib/sqlalchemy/orm/query.py3
-rw-r--r--lib/sqlalchemy/orm/strategies.py1
-rw-r--r--lib/sqlalchemy/util/langhelpers.py4
5 files changed, 9 insertions, 3 deletions
diff --git a/lib/sqlalchemy/__init__.py b/lib/sqlalchemy/__init__.py
index 788ba0b68..1df12a8c8 100644
--- a/lib/sqlalchemy/__init__.py
+++ b/lib/sqlalchemy/__init__.py
@@ -122,7 +122,7 @@ from .engine import create_engine # noqa nosort
from .engine import engine_from_config # noqa nosort
-__version__ = '1.3.1'
+__version__ = "1.3.1"
def __go(lcls):
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 1b89a3ac6..5725b1f05 100644
--- a/lib/sqlalchemy/dialects/mysql/base.py
+++ b/lib/sqlalchemy/dialects/mysql/base.py
@@ -2545,8 +2545,10 @@ class MySQLDialect(default.DefaultDialect):
# but use case-insensitive matching for these two modes in any case.
if self._casing in (1, 2):
+
def lower(s):
return s.lower()
+
else:
# if on case sensitive, there can be two tables referenced
# with the same name different casing, so we need to use
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py
index db8d8bcbe..9544b7d11 100644
--- a/lib/sqlalchemy/orm/query.py
+++ b/lib/sqlalchemy/orm/query.py
@@ -1041,7 +1041,8 @@ class Query(object):
raise sa_exc.InvalidRequestError(
"Incorrect names of values in identifier to formulate "
"primary key for query.get(); primary key attribute names"
- " are %s" % ",".join(
+ " are %s"
+ % ",".join(
"'%s'" % prop.key
for prop in mapper._identity_key_props
)
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index ec3c9790f..d05adecdb 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -595,6 +595,7 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):
def visit_bindparam(bindparam):
bindparam.unique = False
+
visitors.traverse(criterion, {}, {"bindparam": visit_bindparam})
def visit_bindparam(bindparam):
diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
index efc950f1d..117a9e229 100644
--- a/lib/sqlalchemy/util/langhelpers.py
+++ b/lib/sqlalchemy/util/langhelpers.py
@@ -1653,7 +1653,9 @@ def inject_param_text(doctext, inject_params):
# TODO: this still wont cover if the code example itself has blank
# lines in it, need to detect those via indentation.
lines.append(line)
- lines.append(doclines.pop(0)) # the blank line following a code example
+ lines.append(
+ doclines.pop(0)
+ ) # the blank line following a code example
continue
lines.append(line)