Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/idlelib/HyperParser.py

    r2 r391  
    1111import string
    1212import keyword
    13 import PyParse
     13from idlelib import PyParse
    1414
    1515class HyperParser:
     
    3232            for context in editwin.num_context_lines:
    3333                startat = max(lno - context, 1)
    34                 startatindex = `startat` + ".0"
     34                startatindex = repr(startat) + ".0"
    3535                stopatindex = "%d.end" % lno
    3636                # We add the newline because PyParse requires a newline at end.
     
    233233                else:
    234234                    # We can't continue after other types of brackets
     235                    if rawtext[pos] in "'\"":
     236                        # Scan a string prefix
     237                        while pos > 0 and rawtext[pos - 1] in "rRbBuU":
     238                            pos -= 1
     239                        last_identifier_pos = pos
    235240                    break
    236241
Note: See TracChangeset for help on using the changeset viewer.