Eyetracker |

Loading...
Searching...
No Matches
Functions | Variables
pygaze.py3compat Namespace Reference

## Functions
| safe_decode (s, enc='utf-8', errors='strict')
| safe_encode (s, enc='utf-8', errors='strict')

## Variables
bool | py3 = True
| basestring = str
str | universal_newline_mode = u'r'
| bytes = str
| str = unicode
| safe_str = safe_decode

## Detailed Description

    This file is part of OpenSesame.

    OpenSesame is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenSesame is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with OpenSesame.  If not, see <http://www.gnu.org/licenses/>.

## Function Documentation

## ◆ safe_decode()

pygaze.py3compat.safe_decode | ( |  | s,
|  |  | enc = 'utf-8',
|  |  | errors = 'strict' )

## ◆ safe_encode()

pygaze.py3compat.safe_encode | ( |  | s,
|  |  | enc = 'utf-8',
|  |  | errors = 'strict' )

## Variable Documentation

## ◆ basestring

pygaze.py3compat.basestring = str

## ◆ bytes

pygaze.py3compat.bytes = str

## ◆ py3

bool pygaze.py3compat.py3 = True

## ◆ safe_str

pygaze.py3compat.safe_str = safe_decode

## ◆ str

pygaze.py3compat.str = unicode

## ◆ universal_newline_mode

str pygaze.py3compat.universal_newline_mode = u'r'