list fully supported and autopep8
[rainbowstream.git] / rainbowstream / py3patch.py
... / ...
CommitLineData
1"""
2 Python 3 supports
3"""
4import sys
5
6# StringIO module
7try:
8 from StringIO import StringIO, BytesIO
9except:
10 from io import StringIO, BytesIO
11
12# raw_input and map functiion behaviour
13if sys.version[0] == "3":
14 raw_input = input
15 lmap = lambda f, a: list(map(f, a))
16else:
17 lmap = lambda f, a: map(f, a)