Patchwork [3,of,7] py3: use absolute_import in printenv.py

login
register
mail settings
Submitter roby roby
Date April 16, 2016, 3:11 a.m.
Message ID <5734f58d0945ae545030.1460776299@roby>
Download mbox | patch
Permalink /patch/14669/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

roby roby - April 16, 2016, 3:11 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1460773930 -10800
#      Sat Apr 16 05:32:10 2016 +0300
# Node ID 5734f58d0945ae545030a1dc3f68ee0a7a0249b3
# Parent  99a69ee891e3f7985e9e17670d65eda80f96c43c
py3: use absolute_import in printenv.py

Patch

diff -r 99a69ee891e3 -r 5734f58d0945 tests/printenv.py
--- a/tests/printenv.py	Sat Apr 16 05:30:32 2016 +0300
+++ b/tests/printenv.py	Sat Apr 16 05:32:10 2016 +0300
@@ -12,6 +12,7 @@ 
 #   - [output] is the name of the output file (default: use sys.stdout)
 #              the file will be opened in append mode.
 #
+from __future__ import absolute_import
 import os
 import sys
 
diff -r 99a69ee891e3 -r 5734f58d0945 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sat Apr 16 05:30:32 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sat Apr 16 05:32:10 2016 +0300
@@ -42,7 +42,6 @@ 
   setup.py not using absolute_import
   tests/heredoctest.py requires print_function
   tests/md5sum.py not using absolute_import
-  tests/printenv.py not using absolute_import
   tests/readlink.py not using absolute_import
   tests/readlink.py requires print_function
   tests/revlog-formatv0.py not using absolute_import