Opened 11 years ago

Closed 11 years ago

#8383 closed (duplicate) function signature doesn't match what's expected

Reported by: vomjom Owned by: nobody
Component: File uploads/storage Version: master
Severity: Keywords:
Cc: vomjom@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In django/core/files/, TemporaryUploadedFile's seek function only takes an offset, but as in shown in it should also takes a whence argument.

It'd be far better if TemporaryUploadedFile's file-object functions were more similar to InMemoryUploadedFile in that they would pass all the arguments, like:

def seek(self, *args, **kwargs):
    return*args, **kwargs)

And so on for the rest of the functions.

Change History (1)

comment:1 Changed 11 years ago by vomjom

Resolution: duplicate
Status: newclosed

Oops, this looks like a dupe of #7769

Note: See TracTickets for help on using tickets.
Back to Top