~ubuntu-branches/ubuntu/trusty/spyder/trusty-proposed

« back to all changes in this revision

Viewing changes to spyderlib/utils/encoding.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2013-05-08 21:12:32 UTC
  • mfrom: (1.2.1) (18.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20130508211232-r867h9xoenknvuxf
Tags: 2.2.0+dfsg-1
* Imported Upstream version 2.2.0+dfsg
* Depends on ipython-qtconsole (< 1.0)
* Removed the obsolte DM-Upload-Allowed

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
from __future__ import with_statement
15
15
 
16
 
import re, os, locale, sys
 
16
import re
 
17
import os
 
18
import locale
 
19
import sys
17
20
from codecs import BOM_UTF8, BOM_UTF16, BOM_UTF32
18
21
 
 
22
 
19
23
PREFERRED_ENCODING = locale.getpreferredencoding()
20
24
 
21
25
def transcode(text, input=PREFERRED_ENCODING, output=PREFERRED_ENCODING):