• Brett Cannon's avatar
    Merged revisions 88498 via svnmerge from · 45b96d37
    Brett Cannon yazdı
    svn+ssh://pythondev@svn.python.org/python/branches/py3k
    
    ........
      r88498 | brett.cannon | 2011-02-21 19:25:12 -0800 (Mon, 21 Feb 2011) | 8 lines
    
      Issue #11074: Make 'tokenize' so it can be reloaded.
    
      The module stored away the 'open' object as found in the global namespace
      (which fell through to the built-in namespace) since it defined its own 'open'.
      Problem is that if you reloaded the module it then grabbed the 'open' defined
      in the previous load, leading to code that infinite recursed. Switched to
      simply call builtins.open directly.
    ........
    45b96d37
tokenize.py 20.2 KB