Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / astroid / tests / testdata / python3 / data / descriptor_crash.py @ 745

History | View | Annotate | Download (217 Bytes)

1

    
2
import urllib
3

    
4
class Page(object):
5
    _urlOpen = staticmethod(urllib.urlopen)
6

    
7
    def getPage(self, url):
8
        handle = self._urlOpen(url)
9
        data = handle.read()
10
        handle.close()
11
        return data