VirtualBox

Changeset 20178 in vbox


Ignore:
Timestamp:
Jun 2, 2009 7:56:59 AM (16 years ago)
Author:
vboxsync
Message:

Python: fix deprecation warning with Python 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/__init__.py

    r12752 r20178  
    5252        assert int(errno) == errno, "The errno param must be an integer"
    5353        self.errno = errno
    54         self.message = message
     54        self.msg = message
    5555        exceptions.Exception.__init__(self, errno)
    56         # we do this, as parent's constructor can override message
    57         self.message = message
    5856    def __str__(self):
    5957        if not hr_map:
     
    6260                if type(val)==type(0):
    6361                    hr_map[val] = name
    64         message = self.message
     62        message = self.msg
    6563        if message is None:
    6664            message = hr_map.get(self.errno)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette