~bennabiy/+junk/python-xlib

« back to all changes in this revision

Viewing changes to examples/profilex.py

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura, Ramkumar Ramachandra, Andrew Shadura
  • Date: 2015-08-13 08:14:19 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20150813081419-hdefinnghp2iydkx
Tags: 0.14+20091101-3
[ Ramkumar Ramachandra ]
* Remove useless debugging output (Closes: #565996)

[ Andrew Shadura ]
* Switch to 3.0 (quilt) format.
* Rename patches.
* Use debhelper 9 in its short form.
* Use pybuild.
* Bump Standards-Version.
* Don't build or install PostScript documentation and info files.
* Use system-provided texi2html instead of a shipped version
  (Closes: #795057).
* Update debian/copyright (Closes: #795057).
* Don't install Makefile or texi2html with the documentation.
* Set executable bit for examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    r = d.screen().root
19
19
    cm = d.screen().default_colormap
20
20
 
21
 
    for i in xrange(0, 1000):
 
21
    for i in range(0, 1000):
22
22
        if i % 50 == 0:
23
 
            print 'Iteration', i
 
23
            print('Iteration %i' % i)
24
24
 
25
25
        r.delete_property(Xatom.WM_NORMAL_HINTS)
26
26
        r.delete_property(Xatom.WM_NORMAL_HINTS)
39
39
    if len(sys.argv) == 2:
40
40
        main(sys.argv[1])
41
41
    else:
42
 
        print sys.argv[0], "<filename to write profile output to>"
 
42
        print(sys.argv[0] + " <filename to write profile output to>")