Initial port to python3
[htsworkflow.git] / htsworkflow / frontend / bcmagic / utils.py
index 5acc6ddefd6045473ad498c000ec60ae48f8b49c..0317ca7fa3370fa3ee9830ee3adc5a4649594ac5 100644 (file)
@@ -2,7 +2,7 @@ from django.conf import settings
 
 import ftplib
 import socket
-import StringIO
+import io
 
 
 def print_zpl(zpl_text, host=settings.BCPRINTER_PRINTER1_HOST):
@@ -11,7 +11,7 @@ def print_zpl(zpl_text, host=settings.BCPRINTER_PRINTER1_HOST):
     """
     ftp = ftplib.FTP(host=host, user='blank', passwd='')
     ftp.login()
-    ftp.storlines("STOR printme.txt", StringIO.StringIO(zpl_text))
+    ftp.storlines("STOR printme.txt", io.StringIO(zpl_text))
     ftp.quit()