summaryrefslogtreecommitdiff
path: root/cherrypy/py3util.py
diff options
context:
space:
mode:
Diffstat (limited to 'cherrypy/py3util.py')
-rw-r--r--cherrypy/py3util.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/cherrypy/py3util.py b/cherrypy/py3util.py
index ed35c1a6..ed722dba 100644
--- a/cherrypy/py3util.py
+++ b/cherrypy/py3util.py
@@ -3,18 +3,6 @@ A simple module that helps unify the code between a python2 and python3 library.
"""
import sys
-def py3print(*args, **kwargs):
- sep = kwargs.get('sep', ' ')
- end = kwargs.get('end', '\n')
- file = kwargs.get('file', sys.stdout)
- output = sep.join(['%s' % arg for arg in args]) + end
- file.write(output)
-
-try:
- from cStringIO import StringIO
-except ImportError:
- from StringIO import StringIO
-
def sorted(lst):
newlst = list(lst)
newlst.sort()