Mercurial > hg
comparison mercurial/hgweb/server.py @ 15223:fc035e5370ca
pyflakes: clean up some import noise
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 11 Oct 2011 23:16:05 -0500 |
parents | 16e5271b216f |
children | e7cfe3587ea4 |
comparison
equal
deleted
inserted
replaced
15222:73015301db86 | 15223:fc035e5370ca |
---|---|
244 self.rfile = socket._fileobject(self.request, "rb", self.rbufsize) | 244 self.rfile = socket._fileobject(self.request, "rb", self.rbufsize) |
245 self.wfile = socket._fileobject(self.request, "wb", self.wbufsize) | 245 self.wfile = socket._fileobject(self.request, "wb", self.wbufsize) |
246 | 246 |
247 try: | 247 try: |
248 from threading import activeCount | 248 from threading import activeCount |
249 activeCount() # silence pyflakes | |
249 _mixin = SocketServer.ThreadingMixIn | 250 _mixin = SocketServer.ThreadingMixIn |
250 except ImportError: | 251 except ImportError: |
251 if util.safehasattr(os, "fork"): | 252 if util.safehasattr(os, "fork"): |
252 _mixin = SocketServer.ForkingMixIn | 253 _mixin = SocketServer.ForkingMixIn |
253 else: | 254 else: |