Parsing grammar.parseString dont work correct with '='

Bug #1485755 reported by helodron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
graphite-web (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi.

After patch http://bazaar.launchpad.net/~graphite-dev/graphite/trunk/revision/970/webapp/graphite/render/grammar.py, parsing strings with '=' dont work correct:

>>>string2 = 'maxSeries(group(sumSeries(one_min.tools._hosts.{front*,soap*,scripts*,back*}.profile.Perl::DBTools::_sth_execute.db=dict~*.el), sumSeries(one_min.tools._hosts.{front*,soap*,scripts*,back*}.trace.db:*.dict*.all_ela)))'

>>> grammar.parseString(string2)

([(['maxSeries'], {'pathExpression': [('maxSeries', 0)]})], {'expression': [((['maxSeries'], {'pathExpression': [('maxSeries', 0)]}), 0)]})

OLD: validMetricChars = alphanums + r'''!#$%&"'*+-.:;<=>?@[\]^_`|~'''

NEW: symbols = '''(){},=.'"\\'''
NEW: validMetricChars = ''.join((set(printables) - set(symbols)))

Why removed "=" ?

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.