old_contents: # This file is part of Shoop.
  #
  # Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
  #
  # This source code is licensed under the AGPLv3 license found in the
  # LICENSE file in the root directory of this source tree.
  
  
  class TaxingContext(object):
      def __init__(self, customer_tax_group=None, location=None):
          self.customer_tax_group = customer_tax_group
          self.country_code = getattr(location, "country_code", None) or getattr(location, "country", None)
          self.region_code = getattr(location, "region_code", None)
          self.postal_code = getattr(location, "postal_code", None)
  
new_contents: # This file is part of Shoop.
  #
  # Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
  #
  # This source code is licensed under the AGPLv3 license found in the
  # LICENSE file in the root directory of this source tree.
  
  
  class TaxingContext(object):
      def __init__(self, customer_tax_group=None, location=None):
          self.customer_tax_group = customer_tax_group
          self.country_code = getattr(location, "country_code", None) or getattr(location, "country", None)
          self.region_code = getattr(location, "region_code", None)
          self.postal_code = getattr(location, "postal_code", None)
          self.location = location
  
subject: Store the location too