d3632d62debd9799647e8d0e3c05afe3811a48eb,support/rthooks/opengl.py,,myopen,#Any#,35

Before Change



def myopen(fn, *args):
    import os
    lastdir = os.path.basename(os.path.dirname(fn))
    if os.path.basename(fn) == "version" and os.path.splitext(lastdir)[1] == ".pyz":
        import cStringIO
        // Restore original open, since we"re almost done
        __builtins__.__dict__["open"] = __realopen__

After Change


__realopen__ = open

def myopen(fn, *args):
    if fn.endswith("version") and ".pyz" in fn:
        // Restore original open, since we"re almost done
        __builtins__.__dict__["open"] = __realopen__
        // Report a fake revision number. Anything would do since it"s not
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 17

Instances


Project Name: pyinstaller/pyinstaller
Commit Name: d3632d62debd9799647e8d0e3c05afe3811a48eb
Time: 2007-12-21
Author: naufraghi@develer.com
File Name: support/rthooks/opengl.py
Class Name:
Method Name: myopen


Project Name: pyinstaller/pyinstaller
Commit Name: d3632d62debd9799647e8d0e3c05afe3811a48eb
Time: 2007-12-21
Author: naufraghi@develer.com
File Name: support/rthooks/opengl.py
Class Name:
Method Name: myopen


Project Name: pyinstaller/pyinstaller
Commit Name: b5350aa69f407f0ef7f1ec021062f9ed40e2b577
Time: 2008-05-05
Author: naufraghi@develer.com
File Name: support/rthooks/opengl.py
Class Name:
Method Name: myopen


Project Name: pyinstaller/pyinstaller
Commit Name: 0da6ccc79b685f88dc1bfb308fa02d49f9e8c20a
Time: 2007-12-19
Author: naufraghi@develer.com
File Name: support/rthooks/opengl.py
Class Name:
Method Name: myopen