mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
This doesn't deal with classes that define both __unicode__ and __str__; the definition of __str__ should be removed first. It doesn't guarantee that __str__ will return a str (rather than bytes) under Python 3 either.
11 lines
215 B
Python
Executable File
11 lines
215 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
# This works exactly like 2to3, except that it uses Django's fixers rather
|
|
# than 2to3's built-in fixers.
|
|
|
|
import sys
|
|
from lib2to3.main import main
|
|
|
|
sys.exit(main("django.utils.2to3_fixes"))
|
|
|