old_contents: # -*- coding: utf-8 -*-
  """Utility functions.
  
  :author: Stefan Lehmann <stlm@posteo.de>
  :license: MIT, see license file or https://opensource.org/licenses/MIT
  
  :created on: 2018-06-11 18:15:53
  :last modified by: Stefan Lehmann
  :last modified time: 2018-07-12 14:11:12
  
  """
  import functools
  import sys
  import warnings
  from ctypes import c_ubyte
  
  
  def platform_is_linux():
      # type: () -> bool
      """Return True if current platform is Linux or Mac OS."""
      return sys.platform.startswith("linux") or sys.platform.startswith("darwin")
  
  
  def platform_is_windows():
      # type: () -> bool
      """Return True if current platform is Windows."""
      # cli being .NET (IronPython)
      return sys.platform == "win32" or sys.platform == "cli"
  
  
  def deprecated(message):
      """Decorator for deprecated functions.
  
      Shows a deprecation warning with the given message if the
      decorated function is called.
  
      """
      def decorator(func):
  
          @functools.wraps(func)
          def wrapper(*args, **kwargs):
              warnings.warn(message, DeprecationWarning)
              return func(*args, **kwargs)
  
          return wrapper
      return decorator
  
new_contents: # -*- coding: utf-8 -*-
  """Utility functions.
  
  :author: Stefan Lehmann <stlm@posteo.de>
  :license: MIT, see license file or https://opensource.org/licenses/MIT
  
  :created on: 2018-06-11 18:15:53
  :last modified by: Stefan Lehmann
  :last modified time: 2018-07-12 14:11:12
  
  """
  import functools
  import sys
  import warnings
  
  
  def platform_is_linux():
      # type: () -> bool
      """Return True if current platform is Linux or Mac OS."""
      return sys.platform.startswith("linux") or sys.platform.startswith("darwin")
  
  
  def platform_is_windows():
      # type: () -> bool
      """Return True if current platform is Windows."""
      # cli being .NET (IronPython)
      return sys.platform == "win32" or sys.platform == "cli"
  
  
  def deprecated(message):
      """Decorator for deprecated functions.
  
      Shows a deprecation warning with the given message if the
      decorated function is called.
  
      """
  
      def decorator(func):
          @functools.wraps(func)
          def wrapper(*args, **kwargs):
              warnings.warn(message, DeprecationWarning)
              return func(*args, **kwargs)
  
          return wrapper
  
      return decorator
  
subject: Reformat utils.py