Example #1
0
 def take(self, item):
     """If the knapsack is untied, use the Backpack take() method."""
     if self.closed:
         print "Knapsack is closed!"
     else:
         Backpack.take(self, item)