@@ -901,8 +901,6 @@ def process(self):
901
901
defer .returnValue (
902
902
flattenString (self , antanistaticmap [staticpath ]).addCallback (self .writeContent ))
903
903
904
-
905
-
906
904
except Exception :
907
905
pass
908
906
@@ -1143,7 +1141,6 @@ def allContentReceived(self):
1143
1141
self ._savedTimeOut = self .setTimeout (None )
1144
1142
1145
1143
1146
-
1147
1144
class T2WProxyFactory (http .HTTPFactory ):
1148
1145
protocol = T2WProxy
1149
1146
@@ -1451,6 +1448,7 @@ def umask(mask):
1451
1448
ipv4 = None
1452
1449
else :
1453
1450
ipv4 = config .listen_ipv4
1451
+
1454
1452
ipv6 = config .listen_ipv6
1455
1453
1456
1454
# ##############################################################################
@@ -1475,17 +1473,15 @@ def umask(mask):
1475
1473
if os .path .exists (sys_static_dir ):
1476
1474
for root , dirs , files in os .walk (os .path .join (sys_static_dir )):
1477
1475
for basename in files :
1478
- filename = os .path .join (root , basename )
1479
- f = FilePath (filename )
1476
+ f = FilePath (os .path .join (root , basename ))
1480
1477
antanistaticmap [filename .replace (sys_static_dir , "" )] = f .getContent ()
1481
1478
1482
1479
# user defined static files
1483
1480
usr_static_dir = os .path .join (config .datadir , "static/" )
1484
1481
if usr_static_dir != sys_static_dir and os .path .exists (usr_static_dir ):
1485
1482
for root , dirs , files in os .walk (os .path .join (usr_static_dir )):
1486
1483
for basename in files :
1487
- filename = os .path .join (root , basename )
1488
- f = FilePath (filename )
1484
+ f = FilePath (os .path .join (root , basename ))
1489
1485
antanistaticmap [filename .replace (usr_static_dir , "" )] = f .getContent ()
1490
1486
# ##############################################################################
1491
1487
0 commit comments