summaryrefslogtreecommitdiff
path: root/cherrypy/_cpmodpy.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-02-04 13:11:20 -0500
committerJason R. Coombs <jaraco@jaraco.com>2018-02-04 13:44:14 -0500
commitc314adc4deb7cd43aa985ce2541e39588e4098cb (patch)
treedaedd192da82551b82846fa2ee052ba3422bc9ab /cherrypy/_cpmodpy.py
parent513d4bfef99e7e599bc60c7da745d18439567797 (diff)
downloadcherrypy-git-c314adc4deb7cd43aa985ce2541e39588e4098cb.tar.gz
Use bytes literals where appropriatev14.0.0
Diffstat (limited to 'cherrypy/_cpmodpy.py')
-rw-r--r--cherrypy/_cpmodpy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/_cpmodpy.py b/cherrypy/_cpmodpy.py
index 559aa79a..337835f5 100644
--- a/cherrypy/_cpmodpy.py
+++ b/cherrypy/_cpmodpy.py
@@ -64,7 +64,7 @@ import sys
import six
import cherrypy
-from cherrypy._cpcompat import ntob, text_or_bytes
+from cherrypy._cpcompat import text_or_bytes
from cherrypy._cperror import format_exc, bare_error
from cherrypy.lib import httputil
@@ -296,7 +296,7 @@ def read_process(cmd, args=''):
try:
firstline = pipeout.readline()
cmd_not_found = re.search(
- ntob('(not recognized|No such file|not found)'),
+ b'(not recognized|No such file|not found)',
firstline,
re.IGNORECASE
)