~ubuntu-branches/ubuntu/karmic/zeroinstall-injector/karmic

« back to all changes in this revision

Viewing changes to zeroinstall/helpers.py

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Leonard
  • Date: 2009-04-05 10:40:06 UTC
  • mfrom: (1.1.9 upstream) (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090405104006-e3x93j5ibvjqu65a
Tags: 0.39-1ubuntu1
* Updated build for Python 2.6.
* FFe: LP: #336317.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
@since: 0.28
4
4
"""
5
5
 
6
 
# Copyright (C) 2007, Thomas Leonard
 
6
# Copyright (C) 2009, Thomas Leonard
7
7
# See the README file for details, or visit http://0install.net.
8
8
 
9
9
import os, sys, logging
88
88
                                                output = test_callback(sels)
89
89
                                        logging.info("Sending results to GUI...")
90
90
                                        output = ('Length:%8x\n' % len(output)) + output
91
 
                                        logging.debug("Sending: %s" % `output`)
 
91
                                        logging.debug("Sending: %s", repr(output))
92
92
                                        while output:
93
93
                                                sent = cli.send(output)
94
94
                                                output = output[sent:]