changeset 37084 | f0b6fbea00cf |
parent 35329 | 169d66db5920 |
child 37843 | 670eb4fa1b86 |
--- a/hgext/highlight/highlight.py Thu Mar 22 21:19:31 2018 +0900 +++ b/hgext/highlight/highlight.py Thu Mar 22 21:56:20 2018 +0900 @@ -15,7 +15,10 @@ from mercurial import ( encoding, - util, +) + +from mercurial.utils import ( + stringutil, ) with demandimport.deactivated(): @@ -47,7 +50,7 @@ tmpl.cache['header'] = new_header text = fctx.data() - if util.binary(text): + if stringutil.binary(text): return # str.splitlines() != unicode.splitlines() because "reasons"