Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

""" 

    pwm._compat 

    ~~~~~~~~~~~ 

 

    Micro compatiblity library. Or superlight six, if you want. Like a five, or something. 

 

""" 

# pylint: disable=unused-import 

 

import sys 

 

PY2 = sys.version_info[0] == 2 

 

if PY2: # pragma: no cover 

    from ConfigParser import RawConfigParser 

    from httplib import HTTPConnection 

    input = raw_input 

    def ord_byte(char): 

        ''' convert a single character into integer representation ''' 

        return ord(char) 

else: # pragma: no cover 

    from configparser import RawConfigParser 

    from http.client import HTTPConnection 

    input = input 

    def ord_byte(byte): 

        ''' convert a single byte into integer representation ''' 

        return byte