Commit b21f02bd authored by Jason R. Coombs's avatar Jason R. Coombs

Combine DALS implementations in textwrap module.

parent bbb68a8b
...@@ -3,15 +3,12 @@ ...@@ -3,15 +3,12 @@
import os import os
import shutil import shutil
import tempfile import tempfile
import textwrap
import pytest import pytest
import pkg_resources import pkg_resources
from .textwrap import DALS
def DALS(s):
"dedent and left-strip"
return textwrap.dedent(s).lstrip()
class TestDistInfo: class TestDistInfo:
......
"""Easy install Tests """Easy install Tests
""" """
from __future__ import absolute_import
import sys import sys
import os import os
import shutil import shutil
import tempfile import tempfile
import site import site
import contextlib import contextlib
import textwrap
import tarfile import tarfile
import logging import logging
import itertools import itertools
...@@ -29,13 +30,7 @@ import pkg_resources ...@@ -29,13 +30,7 @@ import pkg_resources
from .py26compat import tarfile_open from .py26compat import tarfile_open
from . import contexts from . import contexts
from .textwrap import DALS
def DALS(input):
"""
Dedent and left-strip
"""
return textwrap.dedent(input).lstrip()
class FakeDist(object): class FakeDist(object):
......
...@@ -12,6 +12,8 @@ the script they are to wrap and with the same name as the script they ...@@ -12,6 +12,8 @@ the script they are to wrap and with the same name as the script they
are to wrap. are to wrap.
""" """
from __future__ import absolute_import
import sys import sys
import textwrap import textwrap
import subprocess import subprocess
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment