~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/openstack/common/iniparser.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
            key, value = line[:colon], line[colon + 1:]
54
54
 
55
55
        value = value.strip()
56
 
        if value[0] == value[-1] and value[0] == "\"" or value[0] == "'":
 
56
        if ((value and value[0] == value[-1]) and
 
57
            (value[0] == "\"" or value[0] == "'")):
57
58
            value = value[1:-1]
58
59
        return key.strip(), [value]
59
60