Mercurial > hg
comparison hgext/fsmonitor/__init__.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 | 49d65663d7e4 |
children | 0d83ad967bf8 |
comparison
equal
deleted
inserted
replaced
29204:ce2d81aafbae | 29205:a0939666b836 |
---|---|
93 | 93 |
94 import os | 94 import os |
95 import stat | 95 import stat |
96 import sys | 96 import sys |
97 | 97 |
98 from mercurial.i18n import _ | |
98 from mercurial import ( | 99 from mercurial import ( |
99 context, | 100 context, |
100 extensions, | 101 extensions, |
101 localrepo, | 102 localrepo, |
102 merge, | 103 merge, |
103 pathutil, | 104 pathutil, |
104 scmutil, | 105 scmutil, |
105 util, | 106 util, |
106 ) | 107 ) |
107 from mercurial import match as matchmod | 108 from mercurial import match as matchmod |
108 from mercurial.i18n import _ | |
109 | 109 |
110 from . import ( | 110 from . import ( |
111 state, | 111 state, |
112 watchmanclient, | 112 watchmanclient, |
113 ) | 113 ) |