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

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

Issue 1846093002: Revert of Remove unused imports in webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
48 import traceback 49 import traceback
49 50
50 51
51 from webkitpy.common.host import Host 52 from webkitpy.common.host import Host
52 from webkitpy.common.system import stack_utils 53 from webkitpy.common.system import stack_utils
53 54
54 55
55 _log = logging.getLogger(__name__) 56 _log = logging.getLogger(__name__)
56 57
57 58
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 317
317 318
318 class _WorkerLogHandler(logging.Handler): 319 class _WorkerLogHandler(logging.Handler):
319 def __init__(self, worker): 320 def __init__(self, worker):
320 logging.Handler.__init__(self) 321 logging.Handler.__init__(self)
321 self._worker = worker 322 self._worker = worker
322 self.setLevel(worker.log_level) 323 self.setLevel(worker.log_level)
323 324
324 def emit(self, record): 325 def emit(self, record):
325 self._worker.log_messages.append(record) 326 self._worker.log_messages.append(record)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698