~roadmr/ubuntu/precise/checkbox/0.13.5

« back to all changes in this revision

Viewing changes to checkbox/lib/config.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-12-15 13:05:20 UTC
  • Revision ID: james.westby@ubuntu.com-20101215130520-2h8velbip6ioancs
Tags: 0.10.3ubuntu1
Hack to work around internals of ConfigParser in python2.7. LP: #689140.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import re
21
21
import logging
22
22
import posixpath
 
23
import types
23
24
 
24
25
from ConfigParser import ConfigParser
25
26
 
37
38
 
38
39
    def __setitem__(self, key, value):
39
40
        if key == "includes":
 
41
            if type(value) == types.ListType:
 
42
                value = value[0]
40
43
            for path in split(value):
41
44
                path = self._parser._interpolate("DEFAULT", None, path, self)
42
45
                path = posixpath.expanduser(path)