Skip to content

Commit 3b0bde9

Browse files
committed
Python 3 Update
1 parent 2578436 commit 3b0bde9

File tree

129 files changed

+4320
-1133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+4320
-1133
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# demo and debug folders
22
myTests/*
3+
__pycache__/
34
FoxDot/lib/debug/*
45
FoxDot/data/*
56
FoxDot/lib/Settings/conf.py

FoxDot/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
FoxDot: Live Coding with Python and SuperCollider
88
99
"""
10+
from __future__ import absolute_import, division, print_function
1011

11-
from lib import *
12+
from .lib import *

FoxDot/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
99
"""
1010

11+
from __future__ import absolute_import, division, print_function
12+
1113
from lib import FoxDotCode
1214
from lib.Workspace import workspace
1315

FoxDot/lib/Bang.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from Code import execute
1+
from __future__ import absolute_import, division, print_function
2+
3+
from .Code import execute
24

35
class Bang:
46

FoxDot/lib/Buffers.py

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

33
""" This module manages the allocation of buffer numbers and samples """
4+
from __future__ import absolute_import, division, print_function
45

56
from os.path import abspath, join, dirname
6-
from Settings import FOXDOT_SND, FOXDOT_BUFFERS_FILE
7-
from Settings import FOXDOT_LOOP
8-
from ServerManager import Server
7+
from .Settings import FOXDOT_SND, FOXDOT_BUFFERS_FILE
8+
from .Settings import FOXDOT_LOOP
9+
from .ServerManager import Server
910
import wave
1011
import os
1112

@@ -251,7 +252,7 @@ def FindBuffer(name):
251252
print("File '{}' not found".format(name))
252253
return 0
253254

254-
from SCLang import SampleSynthDef
255+
from .SCLang import SampleSynthDef
255256

256257
class LoopSynthDef(SampleSynthDef):
257258
def __init__(self):

FoxDot/lib/Code/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
from main_lib import *
2-
from foxdot_live_function import livefunction
3-
from foxdot_when_statement import __when__
1+
from __future__ import absolute_import, division, print_function
2+
3+
from .main_lib import *
4+
from .foxdot_live_function import livefunction
5+
from .foxdot_when_statement import __when__

FoxDot/lib/Code/foxdot_func_cmp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
66
"""
77

8+
from __future__ import absolute_import, division, print_function
9+
810
def func_cmp(funcA, funcB):
911

1012
codeA = funcA.__code__

FoxDot/lib/Code/foxdot_live_function.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
""" Allows you continually update a function """
22

3+
from __future__ import absolute_import, division, print_function
4+
35
# TODO: dependencies
46

57
_live_functions_dict = {}
@@ -50,4 +52,4 @@ def part2():
5052

5153
part1()
5254

53-
print part1.__class__
55+
print(part1.__class__)

0 commit comments

Comments
 (0)