~ubuntu-branches/ubuntu/vivid/ceilometer/vivid

« back to all changes in this revision

Viewing changes to ceilometer/transformer/arithmetic.py

  • Committer: Package Import Robot
  • Author(s): James Page, Corey Bryant, James Page
  • Date: 2015-02-19 14:59:07 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20150219145907-9jojybdsl64zcn14
Tags: 2015.1~b2-0ubuntu1
[ Corey Bryant ]
* New upstream release.
  - d/control: Align requirements with upstream.
  - d/p/skip-test.patch: Rebased.

[ James Page ]
* d/rules,d/p/skip-gabbi.patch: Skip tests that rely on python-gabbi until
  packaging and MIR is complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Copyright 2014 Red Hat, Inc
3
3
#
4
 
# Author: Nejc Saje <nsaje@redhat.com>
5
 
#
6
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
7
5
# not use this file except in compliance with the License. You may obtain
8
6
# a copy of the License at
93
91
            )
94
92
        except Exception as e:
95
93
            LOG.warn(_('Unable to evaluate expression %(expr)s: %(exc)s'),
96
 
                     {'expr': self.expr, 'exc': str(e)})
 
94
                     {'expr': self.expr, 'exc': e})
97
95
 
98
96
    def handle_sample(self, context, _sample):
99
97
        self._update_cache(_sample)
121
119
                 the translation of meter names into Python identifiers
122
120
        """
123
121
 
124
 
        class Replacer():
 
122
        class Replacer(object):
125
123
            """Replaces matched meter names with escaped names.
126
124
 
127
125
            If the meter name is not followed by parameter access in the