Mercurial > hg
comparison tests/test-archive.t @ 29179:ce1c6ab15807
tests: test-archive.t use absolute_import
This is a step to adding a mercurial dependency to simplify py3 compat
author | timeless <timeless@mozdev.org> |
---|---|
date | Fri, 06 May 2016 19:17:49 +0000 |
parents | 0fb2fddd00a3 |
children | 6c0b1d964537 |
comparison
equal
deleted
inserted
replaced
29178:0fb2fddd00a3 | 29179:ce1c6ab15807 |
---|---|
67 404 Unsupported archive type: None | 67 404 Unsupported archive type: None |
68 | 68 |
69 $ TIP=`hg id -v | cut -f1 -d' '` | 69 $ TIP=`hg id -v | cut -f1 -d' '` |
70 $ QTIP=`hg id -q` | 70 $ QTIP=`hg id -q` |
71 $ cat > getarchive.py <<EOF | 71 $ cat > getarchive.py <<EOF |
72 > import os, sys, urllib2 | 72 > from __future__ import absolute_import |
73 > import os | |
74 > import sys | |
75 > import urllib2 | |
73 > try: | 76 > try: |
74 > # Set stdout to binary mode for win32 platforms | 77 > # Set stdout to binary mode for win32 platforms |
75 > import msvcrt | 78 > import msvcrt |
76 > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) | 79 > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
77 > except ImportError: | 80 > except ImportError: |