diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-29 19:20:27 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-29 19:20:27 -0400 |
commit | 504d3076f0123de0008da1fed02b5f4a64950a24 (patch) | |
tree | 9e89ef3b716cc2fc5932522a2013017c47e3aab9 /alembic/util.py | |
parent | 839286fa54bc3959b1950134e0d4feae86639c46 (diff) | |
download | alembic-504d3076f0123de0008da1fed02b5f4a64950a24.tar.gz |
more commands, can display history + branchpoints
Diffstat (limited to 'alembic/util.py')
-rw-r--r-- | alembic/util.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/alembic/util.py b/alembic/util.py index e258367..087e189 100644 --- a/alembic/util.py +++ b/alembic/util.py @@ -3,6 +3,7 @@ import sys import os import textwrap from sqlalchemy import util +from sqlalchemy.engine import url import imp import warnings import re @@ -42,7 +43,12 @@ def err(message): msg(message) sys.exit(-1) - +def obfuscate_url_pw(u): + u = url.make_url(u) + if u.password: + u.password = 'XXXXX' + return str(u) + def warn(msg): warnings.warn(msg) |