]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/request_handler_server.py
- python 3.x fixes
[tld-builder.git] / TLD_Builder / request_handler_server.py
index 5ffa1aa7ca8069c36a6b2d797132efe8d4d9f132..8f9200fe6586f3f17e10dd76a473ee289cd3b907 100644 (file)
@@ -11,7 +11,7 @@ import traceback
 import os
 from config import config, init_conf
 
-from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
+from http.server import BaseHTTPRequestHandler, HTTPServer
 
 import request_handler
 import path
@@ -58,7 +58,7 @@ def write_css():
     if os.path.exists(css_file) and os.stat(css_src).st_mtime < os.stat(css_file).st_mtime:
         return
 
-    old_umask = os.umask(0022)
+    old_umask = os.umask(0o0022)
     r = open(css_src, 'r')
     f = open(css_file, "w")
     f.write(r.read())
@@ -73,7 +73,7 @@ def write_js():
     if os.path.exists(js_file) and os.stat(js_src).st_mtime < os.stat(js_file).st_mtime:
         return
 
-    old_umask = os.umask(0022)
+    old_umask = os.umask(0o0022)
     r = open(js_src, 'r')
     f = open(js_file, 'w')
     f.write(r.read())