1. Christian Ebert
  2. muttils

Commits

Christian Ebert  committed 2310d78

wrap: use sys.stdout.write without method wrapper

  • Participants
  • Parent commits 6efe7bd
  • Branches default

Comments (0)

Files changed (1)

File muttils/wrap.py

View file
  • Ignore whitespace
             self.hyph = re.compile(r'\b[-/]+\b')
             self.tail_re = re.compile(r'\w[-/([{&^]$')
         if self._outfunc:
-            self._outfunc = self.streamout
+            self._outfunc = sys.stdout.write
         else:
             self._outfunc = self.collectout
 
-    def streamout(self, line):
-        '''Immediate print of wrapped line.'''
-        sys.stdout.write(line)
-
     def collectout(self, line):
         '''Collects wrapped lines. Slightly faster.'''
         self.olines.append(line)