original_docstring: 
          Updates the requests cards on trello with the due date or marked as
          impossible with current stock.
          
docstring: Updates the requests cards on trello with the due date or marked as
  impossible with current stock.
docstring_tokens: Updates the requests cards on trello with the due date or marked as impossible with current stock .
code: def update_requests(self, requests):
          """
          Updates the requests cards on trello with the due date or marked as
          impossible with current stock.
          """
          for request in requests.get_requests():
              if request.impossible:
                  try:
                      request.backend_object.add_label(self._impossible_label)
                      request.backend_object.set_due('due', '')
                  except ResourceUnavailable:
                      pass
                  print('Request {} is impossible.'.format(request.name))
              else:
                  request.backend_object.set_due(request.due)
                  request.backend_object.remove_label(self._impossible_label)
                  print('Request {} due to {}.'.format(request.name, request.due))
          pass
code_tokens: def update_requests ( self , requests ) : for request in requests . get_requests ( ) : if request . impossible : try : request . backend_object . add_label ( self . _impossible_label ) request . backend_object . set_due ( 'due' , '' ) except ResourceUnavailable : pass print ( 'Request {} is impossible.' . format ( request . name ) ) else : request . backend_object . set_due ( request . due ) request . backend_object . remove_label ( self . _impossible_label ) print ( 'Request {} due to {}.' . format ( request . name , request . due ) ) pass
short_docstring: Updates the requests cards on trello with the due date or marked as
  impossible with current stock.
short_docstring_tokens: Updates the requests cards on trello with the due date or marked as impossible with current stock .
comment: """
          Updates the requests cards on trello with the due date or marked as
          impossible with current stock.
          """