Changeset 5190
- Timestamp:
- 05/11/07 04:44:13 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/webdesign/lorem_ipsum.py
r5189 r5190 60 60 c = len(word_list) 61 61 if count > c: 62 count = min(count - c, len(WORDS)) 63 word_list += random.sample(WORDS, count - c) 62 count -= c 63 while count > 0: 64 c = min(count, len(WORDS)) 65 count -= c 66 word_list += random.sample(WORDS, c) 64 67 else: 65 68 word_list = word_list[:count]
