我们从Python开源项目中,提取了以下16个代码示例,用于说明如何使用rfc822.unquote()。
def getparam(self, name): name = name.lower() + '=' n = len(name) for p in self.plist: if p[:n] == name: return rfc822.unquote(p[n:]) return None
def value(self): if self.matches(TOKEN): return self.eat().value elif self.matches(STRING): return rfc822.unquote(self.eat().value) else: raise ParseError(self.next(), TOKEN, STRING)