summaryrefslogtreecommitdiffstats
path: root/src/browse.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/browse.py')
-rwxr-xr-xsrc/browse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/browse.py b/src/browse.py
index 7f15e50..652bac2 100755
--- a/src/browse.py
+++ b/src/browse.py
@@ -29,6 +29,7 @@ except ImportError:
import subprocess
import sys
import webbrowser
+import urllib2
from collections import namedtuple
Node = namedtuple('Node', ['inputs', 'rule', 'target', 'outputs'])
@@ -151,7 +152,7 @@ def ninja_dump(target):
class RequestHandler(httpserver.BaseHTTPRequestHandler):
def do_GET(self):
assert self.path[0] == '/'
- target = self.path[1:]
+ target = urllib2.unquote(self.path[1:])
if target == '':
self.send_response(302)