~ubuntu-branches/ubuntu/trusty/ubuntu-sso-client/trusty-proposed

« back to all changes in this revision

Viewing changes to ubuntu_sso/qt/setup_account_page.py

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2012-07-26 13:52:33 UTC
  • mfrom: (57.1.1 quantal)
  • Revision ID: package-import@ubuntu.com-20120726135233-qb1cf7dbhpa2mj4b
Tags: 3.99.2-0ubuntu2
* debian/control:
  - Change Recommends of ubuntu-sso-client-gui to Suggests. (LP: #1029552)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
# files in the program, then also delete it here.
29
29
"""Customized Setup Account page for SSO."""
30
30
 
31
 
import StringIO
32
31
import tempfile
33
32
import os
 
33
from io import StringIO
34
34
from functools import partial
35
35
 
36
36
# pylint: disable=F0401
326
326
        # done either by a setParent or something within the qtreactor, PIL
327
327
        # in this case does solve the issue. Sorry :(
328
328
        pil_image = Image.open(self.captcha_file)
329
 
        string_io = StringIO.StringIO()
 
329
        string_io = StringIO()
330
330
        pil_image.save(string_io, format='png')
331
331
        pixmap_image = QtGui.QPixmap()
332
332
        pixmap_image.loadFromData(string_io.getvalue())