You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2016/04/10 01:09:40 UTC

svn commit: r1738395 - /comdev/reporter.apache.org/trunk/scripts/scandist.py

Author: sebb
Date: Sat Apr  9 23:09:40 2016
New Revision: 1738395

URL: http://svn.apache.org/viewvc?rev=1738395&view=rev
Log:
Tidy up imports

Modified:
    comdev/reporter.apache.org/trunk/scripts/scandist.py

Modified: comdev/reporter.apache.org/trunk/scripts/scandist.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/scandist.py?rev=1738395&r1=1738394&r2=1738395&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/scandist.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/scandist.py Sat Apr  9 23:09:40 2016
@@ -8,7 +8,13 @@ from threading import Thread
 from datetime import datetime
 import os
 import sys
-
+import logging
+import atexit
+import signal
+import json
+import re
+import time
+import subprocess
 
 # SMTP Lib
 import smtplib
@@ -18,12 +24,12 @@ from email.mime.multipart import MIMEMul
 version = 2
 if sys.hexversion < 0x03000000:
     print("Using Python 2...")
-    import json, httplib, urllib, urllib2, ConfigParser as configparser, re, base64, sys, os, time, atexit, signal, logging, socket, subprocess
+    import httplib, urllib, urllib2, ConfigParser as configparser, socket
     socket._fileobject.default_bufsize = 0
 else:
     print("Using Python 3")
     version = 3
-    import json, http.client, urllib.request, urllib.parse, configparser, re, base64, sys, os, time, atexit, signal, logging, subprocess
+    import http.client, urllib.request, urllib.parse, configparser
 
 targets = {} # dict: key = project name, value = {dict: key = committer, value = list of commits by the committer for the project}
 
@@ -31,9 +37,9 @@ sendEmail = True # Allow e-mails to be d
 debug = False
 trace = False # More detailed debug
 
-###########################################################
-# Daemon class, curtesy of an anonymous good-hearted soul #
-###########################################################
+############################################################
+# Daemon class, courtesy of an anonymous good-hearted soul #
+############################################################
 class daemon:
         """A generic daemon class.