mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 19:26:44 +00:00
Fix Python 3 issue with combining bytes and unicode.
This commit is contained in:
parent
6b0849490a
commit
aace119790
@ -243,9 +243,10 @@ class Root(MultiFormatResource):
|
||||
self.putChild(b"statistics", status.Statistics(client.stats_provider))
|
||||
static_dir = resource_filename("allmydata.web", "static")
|
||||
for filen in os.listdir(static_dir):
|
||||
child_path = filen
|
||||
if isinstance(filen, unicode):
|
||||
filen = filen.encode("utf-8")
|
||||
self.putChild(filen, static.File(os.path.join(static_dir, filen)))
|
||||
child_path = filen.encode("utf-8")
|
||||
self.putChild(child_path, static.File(os.path.join(static_dir, filen)))
|
||||
|
||||
self.putChild(b"report_incident", IncidentReporter())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user