MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / options

Function options

test/simple_source/bug25/02_try_else.py:3–11  ·  view source on GitHub ↗
(self, section)

Source from the content-addressed store, hash-verified

1# Python 2.5 bug
2# Was turning into tryelse when there in fact is no else.
3def options(self, section):
4 try:
5 opts = self._sections[section].copy()
6 except KeyError:
7 raise NoSectionError(section)
8 opts.update(self._defaults)
9 if '__name__' in opts:
10 del opts['__name__']
11 return opts.keys()
12
13# From python2.5/distutils/command/register.py
14def post_to_server(self, urllib2):

Callers

nothing calls this directly

Calls 2

copyMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected