Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 4 additions & 24 deletions clang/tools/scan-view/share/ScanView.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
from __future__ import print_function

try:
from http.server import HTTPServer, SimpleHTTPRequestHandler
except ImportError:
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
from http.server import HTTPServer, SimpleHTTPRequestHandler
import os
import sys

try:
from urlparse import urlparse
from urllib import unquote
except ImportError:
from urllib.parse import urlparse, unquote

from urllib.parse import urlparse, unquote
import posixpath

if sys.version_info.major >= 3:
from io import StringIO, BytesIO
else:
from io import BytesIO, BytesIO as StringIO

from io import StringIO, BytesIO
import re
import shutil
import threading
import time
import socket
import itertools
import configparser
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Reporter is a local module, I moved configparser above it.


import Reporter

try:
import configparser
except ImportError:
import ConfigParser as configparser

###
# Various patterns matched or replaced by server.
Expand Down