~ubuntu-branches/ubuntu/natty/pyside/natty-proposed

« back to all changes in this revision

Viewing changes to doc/codesnippets/doc/src/snippets/code/src_corelib_io_qurl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2011-02-18 18:01:00 UTC
  • mfrom: (1.2.3 upstream) (6.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110218180100-vaczjij7g08fzfme
Tags: 1.0.0~rc1-1
* New 1.0.0~rc1 upstream release
  - Bump the B-D chain versions:
    + apiextractor to 0.10.0-2~
    + generatorrunner to 0.6.6
    + shiboken to 1.0.0~rc1
* Update patches to ~rc1.
* debian/watch: update to handle Release Candidates too.
* Bump XS-Python-Version to >= 2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
//! [2]
13
13
def checkUrl(url):
14
14
    if !url.isValid():
15
 
        print QString("Invalid URL: %1").arg(url.toString())
16
 
        return false
 
15
        print "Invalid URL: %s" % url.toString()
 
16
        return False
17
17
 
18
 
    return true
 
18
    return True
19
19
 
20
20
//! [2]
21
21
 
41
41
 
42
42
//! [6]
43
43
ba = QUrl.toPercentEncoding("{a fishy string?}", "{}", "s")
44
 
print ba.constData()
 
44
print ba
45
45
# prints "{a fi%73hy %73tring%3F}"
46
46
//! [6]