old_contents: # -*- coding: utf-8 -*-
  # Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.
  # This file is part of the Pycroft project and licensed under the terms of
  # the Apache License, Version 2.0. See the LICENSE file for details.
  """
      pycroft.helpers
      ~~~~~~~~~~~~~~
  
      This package contains different helper modules
  
      :copyright: (c) 2012 by AG DSN.
  """
  
  class AttrDict(dict):
      def __init__(self, *args, **kwargs):
          super(AttrDict, self).__init__(*args, **kwargs)
          self.__dict__ = self
  
new_contents: # -*- coding: utf-8 -*-
  # Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.
  # This file is part of the Pycroft project and licensed under the terms of
  # the Apache License, Version 2.0. See the LICENSE file for details.
  """
      pycroft.helpers
      ~~~~~~~~~~~~~~
  
      This package contains different helper modules
  
      :copyright: (c) 2012 by AG DSN.
  """
  
  class AttrDict(dict):
      def __init__(self, *args, **kwargs):
          super(AttrDict, self).__init__(*args, **kwargs)
          self.__dict__ = self
  
  
  def represents_int(s):
      try:
          int(s)
          return True
      except ValueError:
          return False
  
subject: Add represents_int helper function