comparison tests/printenv.py @ 28944:036787c10b16

py3: use absolute_import in printenv.py
author Robert Stanca <robert.stanca7@gmail.com>
date Sat, 16 Apr 2016 05:32:10 +0300
parents a372f7b4463b
children 84a6e39bc723
comparison
equal deleted inserted replaced
28943:417380aa5bbe 28944:036787c10b16
10 # - <hookname> is a mandatory argument (e.g. "changegroup") 10 # - <hookname> is a mandatory argument (e.g. "changegroup")
11 # - [exit] is the exit code of the hook (default: 0) 11 # - [exit] is the exit code of the hook (default: 0)
12 # - [output] is the name of the output file (default: use sys.stdout) 12 # - [output] is the name of the output file (default: use sys.stdout)
13 # the file will be opened in append mode. 13 # the file will be opened in append mode.
14 # 14 #
15 from __future__ import absolute_import
15 import os 16 import os
16 import sys 17 import sys
17 18
18 try: 19 try:
19 import msvcrt 20 import msvcrt