Skip to content

Commit 6409153

Browse files
authored
Merge pull request #64 from ethz-asl/feature/python3
Switch to Python3
2 parents 20654d0 + 86e3a12 commit 6409153

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

cuckoo_time_translator_python/python/cuckoo_time_translator_python/batch_algo.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import numpy as np
42
import sys
53

cuckoo_time_translator_python/python/cuckoo_time_translator_python/device_time_bags.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
import rosbag
55
import numpy as np
66

7-
from timestamp_series import TimestampSeries
8-
from timestamp_series import TimestampSeries
9-
from tools import *
7+
from .timestamp_series import TimestampSeries
8+
from .tools import *
109

1110
DefaultTopic = '/device_time'
1211

cuckoo_time_translator_python/python/cuckoo_time_translator_python/plotting.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
#!/usr/bin/python
2-
3-
from __future__ import print_function
4-
51
import os
62
import numpy as np
73
import matplotlib
84

95
import matplotlib.pyplot as plt
106

11-
from tools import *
7+
from .tools import *
128

139

1410
def show(block=True):

cuckoo_time_translator_python/python/cuckoo_time_translator_python/tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
from __future__ import print_function
2-
3-
import exceptions
41
try:
52
from termcolor import colored
6-
except exceptions.ImportError:
3+
except ImportError:
74
print("Unable to import termcolor.")
85
print("Try:")
96
print("sudo pip install termcolor")

0 commit comments

Comments
 (0)