Skip to content

Commit

Permalink
Merge from 3.x: PR #3930
Browse files Browse the repository at this point in the history
Fixes #3322
  • Loading branch information
ccordoba12 committed Jan 7, 2017
2 parents c6d1b9c + d7dd020 commit 8911d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/widgets/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def run_code_analysis(self, run_pyflakes, run_pep8):
self.pep8_results = []
if self.editor.is_python():
enc = self.encoding.replace('-guessed', '').replace('-bom', '')
source_code = self.get_source_code().encode(enc)
source_code, enc = encoding.encode(self.get_source_code(), enc)
if run_pyflakes:
self.pyflakes_results = None
if run_pep8:
Expand Down

0 comments on commit 8911d28

Please sign in to comment.