Skip to content

Commit

Permalink
Fixed typo in encoding name
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbean-bremen committed Jun 13, 2016
1 parent c02df60 commit 2dd883e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfakefs/fake_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def _SetInitialContents(self, contents):
elif isinstance(contents, Hexlified):
st_size = len(contents)
else:
st_size = len(contents.encode('utf=8'))
st_size = len(contents.encode('utf-8'))

if self.contents:
self.SetSize(0)
Expand Down

0 comments on commit 2dd883e

Please sign in to comment.