@@ -901,8 +901,6 @@ def process(self):
901901 defer .returnValue (
902902 flattenString (self , antanistaticmap [staticpath ]).addCallback (self .writeContent ))
903903
904-
905-
906904 except Exception :
907905 pass
908906
@@ -1143,7 +1141,6 @@ def allContentReceived(self):
11431141 self ._savedTimeOut = self .setTimeout (None )
11441142
11451143
1146-
11471144class T2WProxyFactory (http .HTTPFactory ):
11481145 protocol = T2WProxy
11491146
@@ -1451,6 +1448,7 @@ def umask(mask):
14511448 ipv4 = None
14521449else :
14531450 ipv4 = config .listen_ipv4
1451+
14541452ipv6 = config .listen_ipv6
14551453
14561454# ##############################################################################
@@ -1475,17 +1473,15 @@ def umask(mask):
14751473if os .path .exists (sys_static_dir ):
14761474 for root , dirs , files in os .walk (os .path .join (sys_static_dir )):
14771475 for basename in files :
1478- filename = os .path .join (root , basename )
1479- f = FilePath (filename )
1476+ f = FilePath (os .path .join (root , basename ))
14801477 antanistaticmap [filename .replace (sys_static_dir , "" )] = f .getContent ()
14811478
14821479# user defined static files
14831480usr_static_dir = os .path .join (config .datadir , "static/" )
14841481if usr_static_dir != sys_static_dir and os .path .exists (usr_static_dir ):
14851482 for root , dirs , files in os .walk (os .path .join (usr_static_dir )):
14861483 for basename in files :
1487- filename = os .path .join (root , basename )
1488- f = FilePath (filename )
1484+ f = FilePath (os .path .join (root , basename ))
14891485 antanistaticmap [filename .replace (usr_static_dir , "" )] = f .getContent ()
14901486# ##############################################################################
14911487
0 commit comments