Removed unnecessary string formatting of strings.

This commit is contained in:
Jon Dufresne 2019-01-14 18:04:00 -08:00 committed by Tim Graham
parent 885cb0d390
commit ad7aa02c1d
3 changed files with 4 additions and 4 deletions

View File

@ -807,7 +807,7 @@ class Ref(Expression):
return self return self
def as_sql(self, compiler, connection): def as_sql(self, compiler, connection):
return "%s" % connection.ops.quote_name(self.refs), [] return connection.ops.quote_name(self.refs), []
def get_group_by_cols(self): def get_group_by_cols(self):
return [self] return [self]

View File

@ -1410,7 +1410,7 @@ class ManyToManyField(RelatedField):
opts = model._meta.auto_created._meta opts = model._meta.auto_created._meta
clashing_obj = '%s.%s' % (opts.label, _get_field_name(model)) clashing_obj = '%s.%s' % (opts.label, _get_field_name(model))
else: else:
clashing_obj = '%s' % model._meta.label clashing_obj = model._meta.label
return [ return [
checks.Error( checks.Error(
"The field's intermediary table '%s' clashes with the " "The field's intermediary table '%s' clashes with the "

View File

@ -66,9 +66,9 @@ class DebugSQLTextTestResult(unittest.TextTestResult):
self.stream.writeln(self.separator1) self.stream.writeln(self.separator1)
self.stream.writeln("%s: %s" % (flavour, self.getDescription(test))) self.stream.writeln("%s: %s" % (flavour, self.getDescription(test)))
self.stream.writeln(self.separator2) self.stream.writeln(self.separator2)
self.stream.writeln("%s" % err) self.stream.writeln(err)
self.stream.writeln(self.separator2) self.stream.writeln(self.separator2)
self.stream.writeln("%s" % sql_debug) self.stream.writeln(sql_debug)
class RemoteTestResult: class RemoteTestResult: