Exemple #1
0
 def _headlines(self):
     yield self.command
     escape = self._escape
     for header in (sorted(self.headers.items()) if self.rawHeaders is None else self.rawHeaders):
         yield ':'.join(escape(textType(field)) for field in header)
     yield ''
     yield ''
Exemple #2
0
 def _headlines(self):
     yield self.command
     escape = self._escape
     for header in (sorted(self.headers.items())
                    if self.rawHeaders is None else self.rawHeaders):
         yield ':'.join(escape(textType(field)) for field in header)
     yield ''
     yield ''
Exemple #3
0
 def _escape(self):
     return escape(self.version, self.command)
Exemple #4
0
 def _escape(self):
     return escape(self.version, self.command)