Mercurial > babel > old > mirror
comparison babel/messages/jslexer.py @ 529:5b62a9699780
Get rid of the utility code for itemgetter(), we now simply import this
from operator.
author | jruigrok |
---|---|
date | Sat, 05 Mar 2011 15:06:28 +0000 |
parents | f03cc3bed4e1 |
children | e93f68837913 |
comparison
equal
deleted
inserted
replaced
528:86d221c0eb12 | 529:5b62a9699780 |
---|---|
13 | 13 |
14 """A simple JavaScript 1.5 lexer which is used for the JavaScript | 14 """A simple JavaScript 1.5 lexer which is used for the JavaScript |
15 extractor. | 15 extractor. |
16 """ | 16 """ |
17 | 17 |
18 from operator import itemgetter | |
18 import re | 19 import re |
19 | |
20 from babel.util import itemgetter | |
21 | |
22 | 20 |
23 operators = [ | 21 operators = [ |
24 '+', '-', '*', '%', '!=', '==', '<', '>', '<=', '>=', '=', | 22 '+', '-', '*', '%', '!=', '==', '<', '>', '<=', '>=', '=', |
25 '+=', '-=', '*=', '%=', '<<', '>>', '>>>', '<<=', '>>=', | 23 '+=', '-=', '*=', '%=', '<<', '>>', '>>>', '<<=', '>>=', |
26 '>>>=', '&', '&=', '|', '|=', '&&', '||', '^', '^=', '(', ')', | 24 '>>>=', '&', '&=', '|', '|=', '&&', '||', '^', '^=', '(', ')', |