fixed a problem with hiding passwords for uri = list of uris, thanks David
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -457,6 +457,8 @@ def pluralize(singular, rules=PLURALIZE_RULES):
|
|||||||
if plural: return plural
|
if plural: return plural
|
||||||
|
|
||||||
def hide_password(uri):
|
def hide_password(uri):
|
||||||
|
if isinstance(uri,(list,tuple)):
|
||||||
|
return [hide_password(item) for item in uri]
|
||||||
return REGEX_NOPASSWD.sub('******',uri)
|
return REGEX_NOPASSWD.sub('******',uri)
|
||||||
|
|
||||||
def OR(a,b):
|
def OR(a,b):
|
||||||
|
|||||||
Reference in New Issue
Block a user