##// END OF EJS Templates
py3: use absolute_import in test-hgweb-non-interactive.t
timeless -
r28859:af2e00c8 default
parent child Browse files
Show More
@@ -7,12 +7,19 b' by the WSGI standard and strictly implem'
7 $ hg add bar
7 $ hg add bar
8 $ hg commit -m "test"
8 $ hg commit -m "test"
9 $ cat > request.py <<EOF
9 $ cat > request.py <<EOF
10 > from mercurial import dispatch
10 > from __future__ import absolute_import
11 > from mercurial.hgweb.hgweb_mod import hgweb
11 > import os
12 > from mercurial.ui import ui
12 > import sys
13 > from mercurial import hg
14 > from StringIO import StringIO
13 > from StringIO import StringIO
15 > import os, sys
14 > from mercurial import (
15 > dispatch,
16 > hg,
17 > ui as uimod,
18 > )
19 > ui = uimod.ui
20 > from mercurial.hgweb.hgweb_mod import (
21 > hgweb,
22 > )
16 >
23 >
17 > class FileLike(object):
24 > class FileLike(object):
18 > def __init__(self, real):
25 > def __init__(self, real):
General Comments 0
You need to be logged in to leave comments. Login now