Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Django removed ERROR_OUTPUT in [12009]; ERROR does the same thing
  • Loading branch information
jbalogh authored and trbs committed Feb 3, 2010
1 parent 00ffbe4 commit 8b0befd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django_extensions/management/commands/export_emails.py
Expand Up @@ -97,7 +97,7 @@ def vcard(self, qs, out):
try:
import vobject
except ImportError:
print self.style.ERROR_OUTPUT("Please install python-vobject to use the vcard export format.")
print self.style.ERROR("Please install python-vobject to use the vcard export format.")
import sys
sys.exit(1)
for ent in qs:
Expand Down
2 changes: 1 addition & 1 deletion django_extensions/management/commands/runscript.py
Expand Up @@ -28,7 +28,7 @@ def handle(self, *scripts, **options):

NOTICE = self.style.SQL_TABLE
NOTICE2 = self.style.SQL_FIELD
ERROR = self.style.ERROR_OUTPUT
ERROR = self.style.ERROR
ERROR2 = self.style.NOTICE

subdirs = []
Expand Down
2 changes: 1 addition & 1 deletion django_extensions/management/commands/shell_plus.py
Expand Up @@ -41,7 +41,7 @@ def handle_noargs(self, **options):
try:
imported_objects[model.__name__] = getattr(__import__(app_mod.__name__, {}, {}, model.__name__), model.__name__)
except AttributeError, e:
print self.style.ERROR_OUTPUT("Failed to import '%s' from '%s' reason: %s" % (model.__name__, app_mod.__name__.split('.')[-2], str(e)))
print self.style.ERROR("Failed to import '%s' from '%s' reason: %s" % (model.__name__, app_mod.__name__.split('.')[-2], str(e)))
continue
try:
if use_plain:
Expand Down
2 changes: 1 addition & 1 deletion django_extensions/management/commands/sqldiff.py
Expand Up @@ -364,7 +364,7 @@ def print_diff_text(self, style):
for diff in diffs:
diff_type, diff_args = diff
text = self.DIFF_TEXTS[diff_type] % dict((str(i), style.SQL_TABLE(e)) for i, e in enumerate(diff_args))
text = "'".join(i%2==0 and style.ERROR_OUTPUT(e) or e for i, e in enumerate(text.split("'")))
text = "'".join(i%2==0 and style.ERROR(e) or e for i, e in enumerate(text.split("'")))
if not self.dense:
print style.NOTICE("|--+"), text
else:
Expand Down

0 comments on commit 8b0befd

Please sign in to comment.