old_contents: # -*- coding: utf-8 -*-
  #
  # This file is part of Invenio.
  # Copyright (C) 2015-2018 CERN.
  #
  # Invenio is free software; you can redistribute it and/or modify it
  # under the terms of the MIT License; see LICENSE file for more details.
  
  """User profiles module for Invenio."""
  
  from .api import current_userprofile
  from .ext import InvenioUserProfiles
  from .models import AnonymousUserProfile, UserProfile
  
  __version__ = '1.2.4'
  
  __all__ = ('__version__', 'InvenioUserProfiles', 'AnonymousUserProfile',
             'UserProfile', 'current_userprofile')
  
new_contents: # -*- coding: utf-8 -*-
  #
  # This file is part of Invenio.
  # Copyright (C) 2015-2018 CERN.
  #
  # Invenio is free software; you can redistribute it and/or modify it
  # under the terms of the MIT License; see LICENSE file for more details.
  
  """User profiles module for Invenio."""
  
  # Monkey patch Werkzeug 2.1
  # Flask-Login uses the safe_str_cmp method which has been removed in Werkzeug
  # 2.1. Flask-Login v0.6.0 (yet to be released at the time of writing) fixes the
  # issue. Once we depend on Flask-Login v0.6.0 as the minimal version in
  # Flask-Security-Invenio/Invenio-Accounts we can remove this patch again.
  try:
      # Werkzeug <2.1
      from werkzeug import security
      security.safe_str_cmp
  except AttributeError:
      # Werkzeug >=2.1
      import hmac
  
      from werkzeug import security
      security.safe_str_cmp = hmac.compare_digest
  
  from .api import current_userprofile
  from .ext import InvenioUserProfiles
  from .models import AnonymousUserProfile, UserProfile
  
  __version__ = '1.2.4'
  
  __all__ = ('__version__', 'InvenioUserProfiles', 'AnonymousUserProfile',
             'UserProfile', 'current_userprofile')
  
subject: fix werkzeug compatibility