~ubuntu-branches/ubuntu/vivid/ardour/vivid-proposed

« back to all changes in this revision

Viewing changes to tools/bug_tool/ClientCookie/_Debug.py

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Jaromír Mikeš, Felipe Sateler
  • Date: 2014-05-22 14:39:25 UTC
  • mfrom: (29 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20140522143925-vwqfo9287pmkrroe
Tags: 1:2.8.16+git20131003-3
* Team upload

[ Jaromír Mikeš ]
* Add -dbg package

[ Felipe Sateler ]
* Upload to experimental

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import ClientCookie
 
2
 
 
3
def debug(text):
 
4
    if ClientCookie.CLIENTCOOKIE_DEBUG: _debug(text)
 
5
 
 
6
def _debug(text, *args):
 
7
    if args:
 
8
        text = text % args
 
9
    ClientCookie.DEBUG_STREAM.write(text+"\n")