Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1803 closed defect (fixed)

Miss spell in get_charset()

Reported by: Shun-ichi Goto <gotoh@…> Owned by: Christopher Lenz
Priority: normal Milestone: 0.9
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I've got exception by miss spell in get_charset().

--- api.py	(revision 1998)
+++ api.py	(working copy)
@@ -106,7 +106,7 @@
     if mimetype:
         ctpos = mimetype.find('charset=')
         if ctpos >= 0:
-            return mime_type[ctpos + 8:]
+            return mimetype[ctpos + 8:]
 
 def get_mimetype(filename):
     """Guess the most probable MIME type of a file with the given name."""

Attachments (0)

Change History (2)

comment:1 by Christopher Lenz, 19 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

Good catch.

comment:2 by Christopher Lenz, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1999].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.