Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/message_pool.py

Issue 1950213002: Remove unused imports in webkitpy with using autoflake. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 27 matching lines...) Expand all
38 If you don't need these features, use multiprocessing.Pool or concurrency.future s 38 If you don't need these features, use multiprocessing.Pool or concurrency.future s
39 intead. 39 intead.
40 40
41 """ 41 """
42 42
43 import cPickle 43 import cPickle
44 import logging 44 import logging
45 import multiprocessing 45 import multiprocessing
46 import Queue 46 import Queue
47 import sys 47 import sys
48 import time
49 import traceback 48 import traceback
50 49
51 50
52 from webkitpy.common.host import Host 51 from webkitpy.common.host import Host
53 from webkitpy.common.system import stack_utils 52 from webkitpy.common.system import stack_utils
54 53
55 54
56 _log = logging.getLogger(__name__) 55 _log = logging.getLogger(__name__)
57 56
58 57
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 321
323 class _WorkerLogHandler(logging.Handler): 322 class _WorkerLogHandler(logging.Handler):
324 323
325 def __init__(self, worker): 324 def __init__(self, worker):
326 logging.Handler.__init__(self) 325 logging.Handler.__init__(self)
327 self._worker = worker 326 self._worker = worker
328 self.setLevel(worker.log_level) 327 self.setLevel(worker.log_level)
329 328
330 def emit(self, record): 329 def emit(self, record):
331 self._worker.log_messages.append(record) 330 self._worker.log_messages.append(record)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698