fixed a problem with hiding passwords for uri = list of uris, thanks David

This commit is contained in:
mdipierro
2013-05-03 22:20:05 -05:00
parent 1383d13334
commit 4f0ee4543b
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.05.03.22.14.19
Version 2.4.6-stable+timestamp.2013.05.03.22.19.25
+2
View File
@@ -457,6 +457,8 @@ def pluralize(singular, rules=PLURALIZE_RULES):
if plural: return plural
def hide_password(uri):
if isinstance(uri,(list,tuple)):
return [hide_password(item) for item in uri]
return REGEX_NOPASSWD.sub('******',uri)
def OR(a,b):