VirtualBox

Ignore:
Timestamp:
May 30, 2016 3:26:03 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107576
Message:

virtual test sheriff: started on the real job. can detect a few simple guru meditations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/db.py

    r61272 r61284  
    332332        but collect data for traceback.
    333333        """
    334         if aoArgs is None:
    335             aoArgs = list();
    336 
    337         sBound = oCursor.mogrify(unicode(sOperation), aoArgs);
     334        if aoArgs is not None:
     335            sBound = oCursor.mogrify(unicode(sOperation), aoArgs);
     336        elif sOperation.find('%') < 0:
     337            sBound = oCursor.mogrify(unicode(sOperation), list());
     338        else:
     339            sBound = unicode(sOperation);
     340
    338341        if sys.version_info[0] >= 3 and not isinstance(sBound, str):
    339342            sBound = sBound.decode('utf-8');
Note: See TracChangeset for help on using the changeset viewer.

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