Improve protected string support
Closed this issue · 1 comments
Jc2k commented
Rename to yay.string.String, and deprecate ProtectedString
Ensure that constructor actually calls self.add() so that raw strings passed to a ProtectedString are wrapped
To support more uses cases like building a command line as a list, support accessing an unprotected and protected list
class String:
@property
def protected_parts(self):
""" Return a list of all string parts with obfusication """
@property
def unprotected_parts(self):
""" Return a list of all string parts with no obfusication """
Jc2k commented
Fix on master.