summaryrefslogtreecommitdiff
path: root/passlib/apache.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-12-06 17:49:43 -0500
committerEli Collins <elic@assurancetechnologies.com>2011-12-06 17:49:43 -0500
commit7645cfde280b228c537d19bcb4d4aab0fdde27ef (patch)
tree916e74aace6e281a3f14b031d0f26c0528a12018 /passlib/apache.py
parentf99c749bac68994be0b9fa3317735efca0924202 (diff)
downloadpasslib-7645cfde280b228c537d19bcb4d4aab0fdde27ef.tar.gz
couple of minor tweaks - basic unittests pass 2.7 & 3.2
Diffstat (limited to 'passlib/apache.py')
-rw-r--r--passlib/apache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passlib/apache.py b/passlib/apache.py
index 37b9024..f34d1d0 100644
--- a/passlib/apache.py
+++ b/passlib/apache.py
@@ -85,7 +85,7 @@ class _CommonFile(object):
passwords will be loaded directly from this string,
and any files will be ignored.
"""
- if instance(content, unicode):
+ if isinstance(content, unicode):
content = content.encode(self.encoding or 'utf-8')
self.mtime = 0
#XXX: replace this with iterator?