/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead.wsgi

  • Committer: Jelmer Vernooij
  • Date: 2021-11-16 00:59:15 UTC
  • mto: This revision was merged to the branch mainline in revision 520.
  • Revision ID: jelmer@jelmer.uk-20211116005915-l8yqzq32x1d88z1q
Avoid breezy.sixish.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from loggerhead.apps.error import ErrorHandlerApp
25
25
from loggerhead.config import LoggerheadConfig
26
26
from breezy import config as bzrconfig
27
 
from breezy.sixish import PY3
28
27
from paste.deploy.config import PrefixMiddleware
29
28
from breezy.plugin import load_plugins
30
29
 
46
45
            ' %(user)s with http_root_dir set to the base directory you want'
47
46
            ' to serve bazaar repositories from' %
48
47
            {'user': pwd.getpwuid(os.geteuid()).pw_name})
49
 
if not PY3:
50
 
    prefix = prefix.encode('utf-8', 'ignore')
51
 
    root_dir = root_dir.encode('utf-8', 'ignore')
 
48
prefix = prefix.encode('utf-8', 'ignore')
 
49
root_dir = root_dir.encode('utf-8', 'ignore')
52
50
app = BranchesFromTransportRoot(root_dir, config)
53
51
app = PrefixMiddleware(app, prefix=prefix)
54
52
app = HTTPExceptionHandler(app)