diff -r 48f3e87ce650 -r 7d5bc0e5b88f hgext/hgk.py --- a/hgext/hgk.py Wed Jul 26 23:33:26 2017 -0400 +++ b/hgext/hgk.py Mon Jul 24 14:38:40 2017 -0400 @@ -50,6 +50,7 @@ patch, registrar, scmutil, + util, ) cmdtable = {} @@ -96,7 +97,7 @@ while True: if opts['stdin']: try: - line = raw_input().split(' ') + line = util.bytesinput(ui.fin, ui.fout).split(' ') node1 = line[0] if len(line) > 1: node2 = line[1] @@ -177,7 +178,7 @@ prefix = "" if opts['stdin']: try: - (type, r) = raw_input().split(' ') + (type, r) = util.bytesinput(ui.fin, ui.fout).split(' ') prefix = " " except EOFError: return @@ -195,7 +196,7 @@ catcommit(ui, repo, n, prefix) if opts['stdin']: try: - (type, r) = raw_input().split(' ') + (type, r) = util.bytesinput(ui.fin, ui.fout).split(' ') except EOFError: break else: