Skip to content

Commit 17734b8

Browse files
committed
top level mods
1 parent ace0d91 commit 17734b8

4 files changed

Lines changed: 2 additions & 55 deletions

File tree

src/compas/__init__.py

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import print_function
1+
# ruff: noqa: F401
22

33
import os
44

@@ -103,34 +103,6 @@
103103
pass
104104

105105

106-
__all__ = [
107-
"WINDOWS",
108-
"LINUX",
109-
"OSX",
110-
"MONO",
111-
"IPY",
112-
"RHINO",
113-
"BLENDER",
114-
"PY2",
115-
"PY3",
116-
"devday",
117-
"is_windows",
118-
"is_linux",
119-
"is_osx",
120-
"is_mono",
121-
"is_ironpython",
122-
"is_rhino",
123-
"is_blender",
124-
"is_grasshopper",
125-
"get",
126-
"json_dump",
127-
"json_load",
128-
"json_dumps",
129-
"json_dumpz",
130-
"json_loads",
131-
"json_loadz",
132-
]
133-
134106
__all_plugins__ = [
135107
"compas.geometry.booleans_shapely",
136108
"compas.scene",

src/compas/_iotools.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
import io
44
from contextlib import contextmanager
5-
6-
try:
7-
from urllib.request import urlopen
8-
except ImportError:
9-
from urllib2 import urlopen
5+
from urllib.request import urlopen
106

117

128
@contextmanager

src/compas/itertools.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# recipes with itertools
22
# see: https://docs.python.org/3.6/library/itertools.html
3-
from __future__ import absolute_import
4-
from __future__ import division
5-
from __future__ import print_function
63

74
from functools import reduce
85
from itertools import chain
@@ -16,18 +13,6 @@
1613
except ImportError:
1714
from itertools import izip_longest as zip_longest # type: ignore
1815

19-
__all__ = [
20-
"normalize_values",
21-
"remap_values",
22-
"meshgrid",
23-
"linspace",
24-
"flatten",
25-
"reshape",
26-
"pairwise",
27-
"window",
28-
"iterable_like",
29-
]
30-
3116

3217
def normalize_values(values, new_min=0.0, new_max=1.0):
3318
"""Normalize a list of numbers to the range between new_min and new_max.

src/compas/tolerance.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,13 @@
2828
2929
"""
3030

31-
from __future__ import absolute_import
32-
from __future__ import division
33-
from __future__ import print_function
34-
3531
from contextlib import contextmanager
3632
from decimal import Decimal
3733
from warnings import warn
3834

3935
import compas
4036
from compas.data import Data
4137

42-
__all__ = ["Tolerance", "TOL"]
43-
4438

4539
class Tolerance(Data):
4640
"""Tolerance settings for geometric operations.

0 commit comments

Comments
 (0)