Mercurial > public > mercurial-scm > hg
comparison contrib/synthrepo.py @ 29205:a0939666b836
py3: move up symbol imports to enforce import-checker rules
Since (b) is banned, we should do the same for (a) for consistency.
a) from mercurial import hg
from mercurial.i18n import _
b) from . import hg
from .i18n import _
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 14 May 2016 14:03:12 +0900 |
parents | 62250a48dc7f |
children | ead25aa27a43 |
comparison
equal
deleted
inserted
replaced
29204:ce2d81aafbae | 29205:a0939666b836 |
---|---|
43 import json | 43 import json |
44 import os | 44 import os |
45 import random | 45 import random |
46 import sys | 46 import sys |
47 import time | 47 import time |
48 | |
49 from mercurial.i18n import _ | |
50 from mercurial.node import ( | |
51 nullid, | |
52 nullrev, | |
53 short, | |
54 ) | |
48 from mercurial import ( | 55 from mercurial import ( |
49 cmdutil, | 56 cmdutil, |
50 context, | 57 context, |
51 error, | 58 error, |
52 hg, | 59 hg, |
53 patch, | 60 patch, |
54 scmutil, | 61 scmutil, |
55 util, | 62 util, |
56 ) | |
57 from mercurial.i18n import _ | |
58 from mercurial.node import ( | |
59 nullid, | |
60 nullrev, | |
61 short, | |
62 ) | 63 ) |
63 | 64 |
64 # Note for extension authors: ONLY specify testedwith = 'internal' for | 65 # Note for extension authors: ONLY specify testedwith = 'internal' for |
65 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 66 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
66 # be specifying the version(s) of Mercurial they are tested with, or | 67 # be specifying the version(s) of Mercurial they are tested with, or |