mirror of
https://github.com/django/django.git
synced 2025-09-22 10:12:43 +00:00
Refactored meta.py -- created a django.core.meta package, with init.py and fields.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
006e9e789b
commit
e0c3dd3318
8 changed files with 712 additions and 710 deletions
|
@ -1,5 +1,8 @@
|
|||
import re
|
||||
|
||||
# Capitalizes the first letter of a string.
|
||||
capfirst = lambda x: x and x[0].upper() + x[1:]
|
||||
|
||||
def wrap(text, width):
|
||||
"""
|
||||
A word-wrap function that preserves existing line breaks and most spaces in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue