##// END OF EJS Templates
posix: use absolute_import
Gregory Szorc -
r25967:224a3345 default
parent child Browse files
Show More
@@ -5,11 +5,26 b''
5 # This software may be used and distributed according to the terms of the
5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7
7
8 from i18n import _
8 from __future__ import absolute_import
9 import encoding
9
10 import os, sys, errno, stat, getpass, pwd, grp, socket, tempfile, unicodedata
10 import errno
11 import fcntl
12 import getpass
13 import grp
14 import os
15 import pwd
16 import re
11 import select
17 import select
12 import fcntl, re
18 import socket
19 import stat
20 import sys
21 import tempfile
22 import unicodedata
23
24 from .i18n import _
25 from . import (
26 encoding,
27 )
13
28
14 posixfile = open
29 posixfile = open
15 normpath = os.path.normpath
30 normpath = os.path.normpath
@@ -459,7 +474,8 b' def gethgcmd():'
459
474
460 def termwidth():
475 def termwidth():
461 try:
476 try:
462 import termios, array
477 import array
478 import termios
463 for dev in (sys.stderr, sys.stdout, sys.stdin):
479 for dev in (sys.stderr, sys.stdout, sys.stdin):
464 try:
480 try:
465 try:
481 try:
General Comments 0
You need to be logged in to leave comments. Login now