Permalink
Browse files

Fixes for tokenize in Python 3.3

  • Loading branch information...
1 parent 09f34e1 commit 4ed49bf811421867ca156b21fac42c2904000301 @takluyver committed Apr 6, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 IPython/utils/_tokenize_py3.py
@@ -169,14 +169,14 @@ def _compile(expr):
if sys.version_info.minor >= 3:
# Python 3.3
for _prefix in ['rb', 'rB', 'Rb', 'RB', 'u', 'U']:
- _t2 = prefix+'"""'
+ _t2 = _prefix+'"""'
endprogs[_t2] = double3prog
triple_quoted[_t2] = _t2
- _t1 = prefix + "'''"
+ _t1 = _prefix + "'''"
endprogs[_t1] = single3prog
triple_quoted[_t1] = _t1
single_quoted[_prefix+'"'] = _prefix+'"'
- single_quoted[_prefix+"'"] + _prefix+"'"
+ single_quoted[_prefix+"'"] = _prefix+"'"
del _prefix, _t2, _t1
endprogs['u'] = None
endprogs['U'] = None

0 comments on commit 4ed49bf

Please sign in to comment.