add cleandoc to _compatibility.py because in python 2.5 it is not in the inspect module.

This commit is contained in:
David Halter
2012-09-01 11:37:14 +02:00
parent 01059b35db
commit 3e4a5dd111
2 changed files with 35 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ as input and ignores just all the non-python stuff. Basically you could feed it
a perl script, and it should still work (which means throw no error.
"""
from _compatibility import (next, literal_eval, tokenize_func, BytesIO,
property, is_py3k, Python3Method)
property, is_py3k, cleandoc, Python3Method)
import tokenize
import re
@@ -37,7 +37,6 @@ import keyword
import weakref
import debug
from inspect import cleandoc
class ParserError(Exception):