A few more fixes for the str -> bytes conversion.
[pyassuan.git] / pyassuan / client.py
index c9d1357134d5512d79df09b68d3547a7b6d33245..2feca475ce9121a7ac0f219542ad93b1e2e643c1 100644 (file)
@@ -40,10 +40,10 @@ class AssuanClient (object):
     def connect(self):
         if not self.input:
             self.logger.info('read from stdin')
-            self.input = _sys.stdin
+            self.input = _sys.stdin.buffer
         if not self.output:
             self.logger.info('write to stdout')
-            self.output = _sys.stdout
+            self.output = _sys.stdout.buffer
 
     def disconnect(self):
         if self.close_on_disconnect: