projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial port to python3
[htsworkflow.git]
/
htsworkflow
/
frontend
/
bcmagic
/
utils.py
diff --git
a/htsworkflow/frontend/bcmagic/utils.py
b/htsworkflow/frontend/bcmagic/utils.py
index 5acc6ddefd6045473ad498c000ec60ae48f8b49c..0317ca7fa3370fa3ee9830ee3adc5a4649594ac5 100644
(file)
--- a/
htsworkflow/frontend/bcmagic/utils.py
+++ b/
htsworkflow/frontend/bcmagic/utils.py
@@
-2,7
+2,7
@@
from django.conf import settings
import ftplib
import socket
import ftplib
import socket
-import
StringIO
+import
io
def print_zpl(zpl_text, host=settings.BCPRINTER_PRINTER1_HOST):
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 = 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()
ftp.quit()