summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-06-06 12:37:31 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-06-06 12:37:31 -0400
commit9393317affc11e8545e5029cb8d55cea7e57c342 (patch)
treee1880de5d6ccc1a34ed0ab757de11afb2e885227 /lib/sqlalchemy/dialects/postgresql/base.py
parent991346d5bbc29479c6c500c3f2b64fd6cc2e9a39 (diff)
downloadsqlalchemy-9393317affc11e8545e5029cb8d55cea7e57c342.tar.gz
Replace some uses of re.sub with str.lstrip/replace
Change-Id: I98cd60b6830ee94e39ba9307523a9e8fb93bf4e8 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/280
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 1bc4409f2..e25ec9aea 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -2085,7 +2085,7 @@ class PGDialect(default.DefaultDialect):
attype = re.sub(r'\(.*\)', '', format_type)
# strip '[]' from integer[], etc.
- attype = re.sub(r'\[\]', '', attype)
+ attype = attype.replace('[]', '')
nullable = not notnull
is_array = format_type.endswith('[]')