Modify ↓
Opened 20 years ago
Closed 20 years ago
#1803 closed defect (fixed)
Miss spell in get_charset()
| Reported by: | 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 , 20 years ago
| Milestone: | → 0.9 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.



Good catch.