Ignore:
Timestamp:
Dec 26, 2018, 8:15:44 PM (14 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use `print` as a function in non-code

Add parentheses for `print` calls in

- documentation
- docstrings
- comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/lrucache.py

    r1713 r1727  
    9595        cache['foo'] = contents
    9696
    97     print cache.size # Maximum size
    98 
    99     print len(cache) # 0 <= len(cache) <= cache.size
     97    print(cache.size) # Maximum size
     98
     99    print(len(cache)) # 0 <= len(cache) <= cache.size
    100100
    101101    cache.size = 10 # Auto-shrink on size assignment
     
    104104        cache[i] = i
    105105
    106     if 0 not in cache: print 'Zero was discarded.'
     106    if 0 not in cache: print('Zero was discarded.')
    107107
    108108    if 42 in cache:
     
    110110
    111111    for j in cache:   # iterate (in LRU order)
    112         print j, cache[j] # iterator produces keys, not values
     112        print(j, cache[j]) # iterator produces keys, not values
    113113    """
    114114
Note: See TracChangeset for help on using the changeset viewer.