Changeset eaad234fa0577e4412ead717f199965b5f4eeb70


Ignore:
Timestamp:
02/24/11 15:46:25 (15 months ago)
Author:
Luper Rouch <luper.rouch@…>
Children:
d9837901e9ca9799810c1be87304c23342618f01
Parents:
613c5fb26da9ceaa0224cada8cbf11c409b45d84
git-committer:
Luper Rouch <luper.rouch@…> (02/24/11 15:46:25)
Message:

2.5 compat fixes

Location:
pyflu/pyflu
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • pyflu/pyflu/__init__.py

    r613c5fb reaad234  
    55 
    66def version(): 
    7     return "0.8" 
     7    return "0.8.1" 
    88 
  • pyflu/pyflu/qt/bug_report/dialog.py

    r613c5fb reaad234  
    4848        if self.main_traceback is not None: 
    4949            parts.append(format_html_exception(*self.main_traceback, 
    50                     with_links=settings.DEV_MODE)) 
     50                **{"with_links": settings.DEV_MODE})) 
    5151        for index, tb in enumerate(self.threads_tracebacks.values()): 
    5252            parts.append(u"Thread %d:" % (index + 1)) 
    5353            parts.append(format_html_exception(*tb,  
    54                 with_links=settings.DEV_MODE)) 
     54                **{"with_links": settings.DEV_MODE})) 
    5555        if settings.DEV_MODE: 
    5656            self.traceback_text.setHtml("".join(parts)) 
  • pyflu/pyflu/qt/util.py

    r3532e9f reaad234  
    11from os.path import dirname, join 
     2import warnings 
     3import types 
     4import functools 
    25from PyQt4.QtGui import (QIcon, QPixmap, QCursor, QFileDialog, QApplication,  
    36        qRgb, qRgba, QDialog) 
    47from PyQt4.QtCore import (Qt, QSettings, QVariant, PYQT_VERSION, QString, 
    58        QCoreApplication) 
    6 import warnings 
    7 import types 
    89 
    910 
     
    2021    function. 
    2122    """ 
    22     def f(*args, **kwargs): 
     23    @functools.wraps(func) 
     24    def wrapper(*args, **kwargs): 
    2325        QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) 
    2426        try: 
     
    2729            QApplication.restoreOverrideCursor() 
    2830        return res 
    29     return f 
     31    return wrapper 
    3032 
    3133 
Note: See TracChangeset for help on using the changeset viewer.