~kubuntu-members/kate/4.11

« back to all changes in this revision

Viewing changes to addons/kate/pate/src/plugins/cmake_utils/command_completers/param_types.py

  • Committer: Alex Turbov
  • Date: 2013-11-05 16:28:03 UTC
  • Revision ID: git-v1:6537387971d5c4b91bf9a5e584d7dc3fbff05c05
fix KeyError exception (rollback as it was before T.C. Hollingsworth broke it 4 days ago)

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
class OneOf(object):
212
212
    '''Class to choose one of possible syntax'''
213
213
 
214
 
    def __init__(self, *syntaxes, **kwargs):
215
 
        exppos = kwargs['exppos']
 
214
    def __init__(self, *syntaxes, exppos=None):
216
215
        self.syntaxes = syntaxes
217
216
        assert(exppos is None or isinstance(exppos, int))
218
217
        self.exppos = exppos