Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#10047 closed (duplicate)

TemporaryFile.seek has bad interface under Windows NT

Reported by: ftartaggia@… Owned by: Jeff Kistler
Component: File uploads/storage Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

(see also: closed ticket #7769)

module: django.core.files.temp.py

Under Windows NT platform, a NamedTemporaryFile is a TemporaryFile, whose 'seek' method misses 'whence' argument.

I suppose that line 52 should be changed from:

def seek(self, offset): return self.file.seek(offset)

to:

def seek(self, *args): return self.file.seek(*args).

Attachments (1)

patch.diff (1.2 KB ) - added by Jeff Kistler 16 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by ftartaggia@…, 16 years ago

Has patch: set
milestone: post-1.0
Version: 1.0SVN

comment:2 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

comment:3 by Jacob, 16 years ago

milestone: 1.1
Triage Stage: UnreviewedAccepted

comment:4 by Jeff Kistler, 16 years ago

Owner: changed from nobody to Jeff Kistler
Status: newassigned

by Jeff Kistler, 16 years ago

Attachment: patch.diff added

comment:5 by Armin Ronacher, 16 years ago

Resolution: fixed
Status: assignedclosed

This one was fixed by the patch in #9344.

comment:6 by Alex Gaynor, 16 years ago

Resolution: fixed
Status: closedreopened

comment:7 by Alex Gaynor, 16 years ago

Resolution: duplicate
Status: reopenedclosed

This is actually a dupe.

comment:8 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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