old_contents: # encoding: utf-8
  
  """
  .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  """
  
  from __future__ import absolute_import, unicode_literals
  
  import shutil
  import warnings
  
  import six
  import typepy
  
  from .error import CommandNotFoundError, InvalidCommandError
  
  
  class Which(object):
  
      @property
      def command(self):
          return self.__command
  
      def __init__(self, command):
          if not typepy.is_not_null_string(command):
              raise InvalidCommandError("invalid str {}: ".format(command))
  
          self.__command = command
          self.__abspath = None
  
      def __repr__(self):
          item_list = [
              "command={}".format(self.command),
              "is_exist={}".format(self.is_exist()),
          ]
  
          if self.is_exist():
              item_list.append("abspath={}".format(self.abspath()))
  
          return ", ".join(item_list)
  
      def is_exist(self):
          return self.abspath() is not None
  
      def verify(self):
          if not self.is_exist():
              raise CommandNotFoundError(
                  "command not found: '{}'".format(self.command))
  
      def abspath(self):
          if self.__abspath:
              return self.__abspath
  
          if six.PY2:
              from distutils.spawn import find_executable
              self.__abspath = find_executable(self.command)
          else:
              self.__abspath = shutil.which(self.command)
  
          return self.__abspath
  
      def full_path(self):
          warnings.warn(
              "full_path() deleted in the future, use abspath() instead.",
              DeprecationWarning)
  
          return self.abspath()
  
      def which(self):
          warnings.warn(
              "which() deleted in the future, use abspath() instead.",
              DeprecationWarning)
  
          return self.abspath()
  
new_contents: # encoding: utf-8
  
  """
  .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  """
  
  from __future__ import absolute_import, unicode_literals
  
  import shutil
  import warnings
  
  import six
  import typepy
  
  from .error import CommandNotFoundError, InvalidCommandError
  
  
  class Which(object):
  
      @property
      def command(self):
          return self.__command
  
      def __init__(self, command):
          if not typepy.is_not_null_string(command):
              raise InvalidCommandError("invalid str {}: ".format(command))
  
          self.__command = command
          self.__abspath = None
  
      def __repr__(self):
          item_list = [
              "command={}".format(self.command),
              "is_exist={}".format(self.is_exist()),
          ]
  
          if self.is_exist():
              item_list.append("abspath={}".format(self.abspath()))
  
          return ", ".join(item_list)
  
      def is_exist(self):
          return self.abspath() is not None
  
      def verify(self):
          if not self.is_exist():
              raise CommandNotFoundError("command not found: '{}'".format(self.command))
  
      def abspath(self):
          if self.__abspath:
              return self.__abspath
  
          if six.PY2:
              from distutils.spawn import find_executable
              self.__abspath = find_executable(self.command)
          else:
              self.__abspath = shutil.which(self.command)
  
          return self.__abspath
  
      def full_path(self):
          warnings.warn(
              "full_path() deleted in the future, use abspath() instead.", DeprecationWarning)
  
          return self.abspath()
  
      def which(self):
          warnings.warn(
              "which() deleted in the future, use abspath() instead.", DeprecationWarning)
  
          return self.abspath()
  
subject: Remove line breaks