diff options
Diffstat (limited to 'textutils.py')
-rw-r--r-- | textutils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/textutils.py b/textutils.py index 7114f68..1582e3e 100644 --- a/textutils.py +++ b/textutils.py @@ -46,7 +46,10 @@ __docformat__ = "restructuredtext en" import re from unicodedata import normalize as _uninormalize -from os import linesep +try: + from os import linesep +except ImportError: + linesep = '\n' # gae MANUAL_UNICODE_MAP = { |