Skip to content

Commit ddd6412

Browse files
committed
Added from __future__ import print_function so print is a function, not a statement in code
1 parent fe63020 commit ddd6412

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Adafruit_TSL2561/Adafruit_TSL2561.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
Added hack so that with autogain every sample goes from 1x to 16x as going from 16x to 1x does not work
3232
"""
3333

34+
from __future__ import print_function
3435
import logging
3536
import sys
3637
import time

Adafruit_TSL2561/Adafruit_TSL2561_example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/python
22

3+
from __future__ import print_function
34
from Adafruit_TSL2561 import AdafruitTSL2561
45

56
# Initialise the sensor

0 commit comments

Comments
 (0)