equal
deleted
inserted
replaced
419 $ cat > $TESTTMP/absextroot/relimportee.py <<EOF |
419 $ cat > $TESTTMP/absextroot/relimportee.py <<EOF |
420 > detail = b"this is absextroot.relimportee" |
420 > detail = b"this is absextroot.relimportee" |
421 > EOF |
421 > EOF |
422 $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF |
422 $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF |
423 > from __future__ import absolute_import |
423 > from __future__ import absolute_import |
|
424 > from mercurial import pycompat |
424 > from ... import relimportee |
425 > from ... import relimportee |
425 > detail = b"this relimporter imports %r" % (relimportee.detail) |
426 > detail = b"this relimporter imports %r" % ( |
|
427 > pycompat.bytestr(relimportee.detail)) |
426 > EOF |
428 > EOF |
427 |
429 |
428 Setup modules, which actually import extension local modules at |
430 Setup modules, which actually import extension local modules at |
429 runtime. |
431 runtime. |
430 |
432 |