Commits

Jason R. Coombs  committed 0699212

Reorganized imports

  • Participants
  • Parent commits fe26e5e

Comments (0)

Files changed (2)

File jaraco/net/site.py

 from __future__ import print_function
+
 from path import path
 from jaraco.util.string import local_format as lf
 

File jaraco/net/smtp.py

-import socket, sys, re, time
+import socket
+import sys
+import re
+import time
+import smtpd
+import asyncore
 from optparse import OptionParser
 
 def _get_args():
 
 	options, args = p.parse_args()
 
-import smtpd
-import asyncore
-
 class DebuggingServer(smtpd.DebuggingServer):
 	def process_message(self, peer, mailfrom, rcpttos, data):
 		# seriously, why doesn't a debugging server just print everything?
 			print ': '.join(map(str, (var, val)))
 		smtpd.DebuggingServer.process_message(self, peer, mailfrom, rcpttos, data)
 
-
 def start_simple_server():
 	"A simple mail server that sends a simple response"
 	_get_args()
 	addr = ('', options.port)
 	s = DebuggingServer(addr, None)
-	asyncore.loop()
+	asyncore.loop()