aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'g_octave/compat.py')
-rw-r--r--g_octave/compat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/g_octave/compat.py b/g_octave/compat.py
index aa45207..ec364c3 100644
--- a/g_octave/compat.py
+++ b/g_octave/compat.py
@@ -19,9 +19,11 @@ __all__ = [
import codecs
import sys
+
py3k = sys.version_info >= (3, 0)
def open(filename, mode='r', encoding='utf-8'):
+ '''custom implementation of the 'open' builtin, using the codecs module'''
try:
return codecs.open(filename, mode=mode, encoding=encoding)
except: