rewind the file to the begining
This commit is contained in:
parent
7a89d27c80
commit
8a528add8b
@ -87,6 +87,9 @@ class CommonAsciiProcessor(MediaProcessor):
|
|||||||
d_charset,
|
d_charset,
|
||||||
self.charset))
|
self.charset))
|
||||||
|
|
||||||
|
# Rewind the file
|
||||||
|
orig_file.seek(0)
|
||||||
|
|
||||||
def store_unicode_file(self):
|
def store_unicode_file(self):
|
||||||
with file(self.orig_filename, 'rb') as orig_file:
|
with file(self.orig_filename, 'rb') as orig_file:
|
||||||
self._detect_charset(orig_file)
|
self._detect_charset(orig_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user