Skip to content

Commit 3100d2a

Browse files
committed
remove "future" dependency
1 parent 917293c commit 3100d2a

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

poetry.lock

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ termcolor = ">=1.1.0,<2"
3232
pyparsing = ">=2.0,<3"
3333
clique = "==1.6.1"
3434
websocket-client = ">=0.40.0,<1"
35-
future = ">=0.16.0,<1"
3635
platformdirs = ">=4.0.0,<5"
3736
wheel = "^0.41.2"
3837

source/ftrack_api/entity/factory.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,8 @@ def create(self, schema, bases=None):
151151
class_namespace["primary_key_attributes"] = schema["primary_key"][:]
152152
class_namespace["default_projections"] = default_projections
153153

154-
from future.utils import native_str
155-
156154
cls = type(
157-
native_str(class_name), # type doesn't accept unicode.
155+
str(class_name), # type doesn't accept unicode.
158156
tuple(class_bases),
159157
class_namespace,
160158
)

source/ftrack_api/inspection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# :copyright: Copyright (c) 2015 ftrack
33

44
from builtins import str
5-
from future.utils import native_str
65
import collections
76

87
import ftrack_api.symbol
@@ -32,7 +31,7 @@ def primary_key(entity):
3231
)
3332

3433
# todo: Compatiblity fix, review for better implementation.
35-
primary_key[native_str(name)] = native_str(value)
34+
primary_key[str(name)] = str(value)
3635

3736
return primary_key
3837

0 commit comments

Comments
 (0)