equal
deleted
inserted
replaced
1128 |
1128 |
1129 command = fullcmd |
1129 command = fullcmd |
1130 |
1130 |
1131 try: |
1131 try: |
1132 pager = subprocess.Popen( |
1132 pager = subprocess.Popen( |
1133 command, shell=shell, bufsize=-1, |
1133 procutil.tonativestr(command), shell=shell, bufsize=-1, |
1134 close_fds=procutil.closefds, stdin=subprocess.PIPE, |
1134 close_fds=procutil.closefds, stdin=subprocess.PIPE, |
1135 stdout=procutil.stdout, stderr=procutil.stderr, |
1135 stdout=procutil.stdout, stderr=procutil.stderr, |
1136 env=procutil.shellenviron(env)) |
1136 env=procutil.tonativeenv(procutil.shellenviron(env))) |
1137 except OSError as e: |
1137 except OSError as e: |
1138 if e.errno == errno.ENOENT and not shell: |
1138 if e.errno == errno.ENOENT and not shell: |
1139 self.warn(_("missing pager command '%s', skipping pager\n") |
1139 self.warn(_("missing pager command '%s', skipping pager\n") |
1140 % command) |
1140 % command) |
1141 return False |
1141 return False |