(self)
validates the expiration option supplied
validates the expiration option supplied
validates the expiration option supplied
def _clean_key_expiration_option(self):
        """validates the expiration option supplied"""
        allowed_entry = re.findall('^(\d+)(|w|m|y)$', self._expiration_time)
        if not allowed_entry:
            raise UsageError("Key expiration option: %s is not valid" % self._expiration_time)
def _clean_key_expiration_option ( self ) : allowed_entry = re . findall ( '^(\d+)(|w|m|y)$' , self . _expiration_time ) if not allowed_entry : raise UsageError ( "Key expiration option: %s is not valid" % self . _expiration_time )