Mercurial > hg
comparison tests/test-pathencode.py @ 28928:59481bfdb7f3
tests: make test-pathencode use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 16 Apr 2016 03:04:23 +0530 |
parents | 72f683260f31 |
children | 0f200e2310ca |
comparison
equal
deleted
inserted
replaced
28927:2d433fa7ff44 | 28928:59481bfdb7f3 |
---|---|
3 # | 3 # |
4 # It uses a simple probabilistic model to generate valid pathnames | 4 # It uses a simple probabilistic model to generate valid pathnames |
5 # that have proven likely to expose bugs and divergent behavior in | 5 # that have proven likely to expose bugs and divergent behavior in |
6 # different encoding implementations. | 6 # different encoding implementations. |
7 | 7 |
8 from __future__ import print_function | 8 from __future__ import absolute_import, print_function |
9 | 9 |
10 from mercurial import store | 10 import binascii |
11 import binascii, itertools, math, os, random, sys, time | |
12 import collections | 11 import collections |
12 import itertools | |
13 import math | |
14 import os | |
15 import random | |
16 import sys | |
17 import time | |
18 from mercurial import ( | |
19 store, | |
20 ) | |
13 | 21 |
14 validchars = set(map(chr, range(0, 256))) | 22 validchars = set(map(chr, range(0, 256))) |
15 alphanum = range(ord('A'), ord('Z')) | 23 alphanum = range(ord('A'), ord('Z')) |
16 | 24 |
17 for c in '\0/': | 25 for c in '\0/': |