Permalink
Browse files

dont shadow a global

  • Loading branch information...
mcdonc authored and rpatterson committed Mar 15, 2012
1 parent 19861ee commit 2055c99eadb594d9b5a53375806496844dac4412
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyramid_mailer/response.py
@@ -181,7 +181,7 @@ def attach(self, filename=None, content_type=None, data=None,
self.multipart = True
if filename and not content_type:
- content_type, encoding = mimetypes.guess_type(filename)
+ content_type, enc = mimetypes.guess_type(filename)
assert content_type, ("No content type given, and couldn't guess "
"from the filename: %r" % filename)

0 comments on commit 2055c99

Please sign in to comment.