irkerd: Split imported modules onto their own lines
authorW. Trevor King <wking@tremily.us>
Fri, 7 Mar 2014 04:21:05 +0000 (20:21 -0800)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 11 Mar 2014 04:43:14 +0000 (00:43 -0400)
Following PEP 8 [1]:

  Imports should usually be on separate lines, e.g.:

    Yes: import os
         import sys

    No:  import sys, os

This also makes it easier to read diffs that add and remove imports,
since you won't need a word-diff to see exactly what changed.

[1]: http://legacy.python.org/dev/peps/pep-0008/#imports

Conflicts:
irkerd

irkerd

diff --git a/irkerd b/irkerd
index ea5f25eedd98693b1103421a5e8af01929b99c76..1a1739ed5f00a57e069678081144fb6fb9325913 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -45,12 +45,23 @@ CONNECTION_MAX = 200                # To avoid hitting a thread limit
 
 version = "2.6"
 
-import sys, getopt, urlparse, time, random, socket, signal, re
-import threading, Queue, SocketServer, select
+import Queue
+import SocketServer
+import getopt
 try:
     import simplejson as json  # Faster, also makes us Python-2.4-compatible
 except ImportError:
     import json
+import random
+import re
+import select
+import signal
+import socket
+import sys
+import threading
+import time
+import urlparse
+
 
 # Sketch of implementation:
 #