]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Reduce line length to <79
authorEric Borczuk <eric@trialspark.com>
Thu, 27 Feb 2020 19:51:29 +0000 (14:51 -0500)
committerEric Borczuk <eric@trialspark.com>
Fri, 28 Feb 2020 05:26:21 +0000 (00:26 -0500)
lib/sqlalchemy/dialects/postgresql/base.py

index 11b8714a1e9cd849ec319681c7070c55583379de..f4499c5130c6e62c45f8a53a720c6fb3cc4cf4db 100644 (file)
@@ -3490,12 +3490,14 @@ class PGDialect(default.DefaultDialect):
             # "CHECK (some_boolean_function(a))"
             # "CHECK (((a\n < 1)\n OR\n (a\n >= 5))\n)"
 
-            m = re.match(r"^CHECK *\((.+)\)( NOT VALID)?$", src, flags=re.DOTALL)
+            m = re.match(
+                r"^CHECK *\((.+)\)( NOT VALID)?$", src, flags=re.DOTALL)
             if not m:
                 util.warn("Could not parse CHECK constraint text: %r" % src)
                 sqltext = ""
             else:
-                match_without_newlines = ' '.join(m.group(1).splitlines()).strip()
+                match_without_newlines = ' '.join(
+                    m.group(1).splitlines()).strip()
                 sqltext = re.sub(r"^\((.+)\)$", r"\1", match_without_newlines)
             entry = {"name": name, "sqltext": sqltext}
             if m and m.group(2):