Work with Python print functionality on 2 and 3

Bug #1018611 reported by Brian Curtin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Status tracked in Trunk
Stable-4-0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Undecided
Brian Curtin
ubuntu-sso-client (Ubuntu)
Fix Released
Undecided
Unassigned
Quantal
Fix Released
Undecided
Unassigned

Bug Description

Python 3 moved the print statement to be the print function, so "print foo" becomes a syntax error on Python 3. We can use the "from __future__ import print_function" import to force Python 2 to work the same way as Python 3 in regards to printing.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-sso-client - 3.99.2-0ubuntu1

---------------
ubuntu-sso-client (3.99.2-0ubuntu1) quantal; urgency=low

  * New upstream release.
    - Avoid using /usr/bin/env python in scripts. (LP: #984089)
    - Avoid using xrange, which is not in Python 3. (LP: #1016774)
    - Handle winreg vs. _winreg for Python 2 and 3. (LP: #1016957)
    - Remove the GTK+ UI. (LP: #1017690)
    - Handle urllib differences between Python 2 and 3. (LP: #1018587)
    - Use io.StringIO everywhere, for Python 2 and 3. (LP: #1018599)
    - Use new print syntax for Python 3. (LP: #1018611)
  * debian/control:
    - Remove the -gtk UI package, and update the deps.
  * debian/ubuntu-sso-client-gtk.install:
    - Removed.
 -- Rodney Dawes <email address hidden> Fri, 20 Jul 2012 12:49:23 -0400

Changed in ubuntu-sso-client (Ubuntu Quantal):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.