python 3 fix for _print_ll

This commit is contained in:
Mahmoud Hashemi 2016-01-21 17:41:12 -08:00
parent 218a423f24
commit 7a40e3fc93
1 changed files with 3 additions and 3 deletions

View File

@ -134,15 +134,15 @@ class LRU(dict):
self._link_lookup = {}
self._anchor = anchor
def print_ll(self):
def _print_ll(self):
link = self._anchor
print '***'
print('***')
while True:
print(link[KEY], link[VALUE])
link = link[NEXT]
if link is self._anchor:
break
print '***'
print('***')
return
def _get_link_and_move_to_front_of_ll(self, key):