Changeset 82999 in webkit


Ignore:
Timestamp:
Apr 5, 2011 4:54:34 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-05 Adam Barth <abarth@webkit.org>

Reviewed by Tony Chang.

Don't use Exception.message because it's deprecated
https://bugs.webkit.org/show_bug.cgi?id=57892

Suppress the warning for now. When we move to Python 3, we might need
to something more dramatic.

  • Scripts/webkitpy/common/system/executive.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r82998 r82999  
     12011-04-05  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        Don't use Exception.message because it's deprecated
     6        https://bugs.webkit.org/show_bug.cgi?id=57892
     7
     8        Suppress the warning for now.  When we move to Python 3, we might need
     9        to something more dramatic.
     10
     11        * Scripts/webkitpy/common/system/executive.py:
     12
    1132011-04-05  Mihai Parparita  <mihaip@chromium.org>
    214
  • trunk/Tools/Scripts/webkitpy/common/system/executive.py

    r82978 r82999  
    4444import sys
    4545import time
     46import warnings
    4647
    4748from webkitpy.common.system.deprecated_logging import tee
     
    8384
    8485    def __str__(self):
    85         if self.output:
    86             return self.message + "\n" + self.output
    87         return self.message
     86        with warnings.catch_warnings():
     87            warnings.simplefilter("ignore")
     88            if self.output:
     89                return self.message + "\n" + self.output
     90            return self.message
    8891
    8992    def message_with_output(self, output_limit=500):
Note: See TracChangeset for help on using the changeset viewer.