Decimal imported but not used in ubuntu-sso-login

Bug #1005548 reported by Manuel de la Peña
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Triaged
Low
Unassigned

Bug Description

After the merge of https://code.launchpad.net/~ballogy/ubuntu-sso-client/drop-lazr/+merge/107153 lazr is not longer a dependency and accoding to the comments in the code:

# import decimal even if we don't need it, pylint: disable=W0611
import decimal
# This is a workaround for LP: #467397. Some module in our depency chain sets
# the locale and imports decimal, and that generates the following trace:
# Traceback (most recent call last):
# File "/usr/lib/ubuntu-sso-client/ubuntu-sso-login", line 33
# from ubuntu_sso.main import SSOLogin
# File "/usr/lib/pymodules/python2.6/ubuntu_sso/main.py", line 42
# from lazr.restfulclient.resource import ServiceRoot
# File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py",
# line 34
# import simplejson
# File "/usr/lib/pymodules/python2.6/simplejson/__init__.py", line 109
# from decimal import Decimal
# File "/usr/lib/python2.6/decimal.py", line 3649, in <module>
# val = globals()[globalname]
# KeyError: 'ROUND_CEiLiNG'

decimal does not longer need to be imported.

Martin Pitt (pitti)
Changed in ubuntu-sso-client:
assignee: Canonical Desktop Team (canonical-desktop-team) → nobody
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.