file = getfile(object)
sourcefile = getsourcefile(object)
- if not sourcefile and file[0] + file[-1] != '<>':
+ if not sourcefile and file[:1] + file[-1:] != '<>':
- raise IOError('source code not available')
+ raise OSError('source code not available')
file = sourcefile if sourcefile else file
module = getmodule(object, file)
Library
-------
++- Issue #17526: fix an IndexError raised while passing code without filename to
++ inspect.findsource(). Initial patch by Tyler Doyle.
++
- Issue #17540: Added style to formatter configuration by dict.
+- Issue #16692: The ssl module now supports TLS 1.1 and TLS 1.2. Initial
+ patch by Michele OrrĂ¹.
+
+- Issue #17025: multiprocessing: Reduce Queue and SimpleQueue contention.
+
- Issue #17536: Add to webbrowser's browser list: www-browser, x-www-browser,
iceweasel, iceape.