Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dont shadow a global

  • Loading branch information...
commit 2055c99eadb594d9b5a53375806496844dac4412 1 parent 19861ee
@mcdonc mcdonc authored rpatterson committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  pyramid_mailer/response.py
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.