Skip to content

Commit

Permalink
remove "future" dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
torsdag committed Mar 22, 2024
1 parent 917293c commit 3100d2a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
12 changes: 1 addition & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -32,7 +32,6 @@ termcolor = ">=1.1.0,<2"
pyparsing = ">=2.0,<3"
clique = "==1.6.1"
websocket-client = ">=0.40.0,<1"
future = ">=0.16.0,<1"
platformdirs = ">=4.0.0,<5"
wheel = "^0.41.2"

Expand Down
4 changes: 1 addition & 3 deletions source/ftrack_api/entity/factory.py
Expand Up @@ -151,10 +151,8 @@ def create(self, schema, bases=None):
class_namespace["primary_key_attributes"] = schema["primary_key"][:]
class_namespace["default_projections"] = default_projections

from future.utils import native_str

cls = type(
native_str(class_name), # type doesn't accept unicode.
str(class_name), # type doesn't accept unicode.
tuple(class_bases),
class_namespace,
)
Expand Down
3 changes: 1 addition & 2 deletions source/ftrack_api/inspection.py
Expand Up @@ -2,7 +2,6 @@
# :copyright: Copyright (c) 2015 ftrack

from builtins import str
from future.utils import native_str
import collections

import ftrack_api.symbol
Expand Down Expand Up @@ -32,7 +31,7 @@ def primary_key(entity):
)

# todo: Compatiblity fix, review for better implementation.
primary_key[native_str(name)] = native_str(value)
primary_key[str(name)] = str(value)

return primary_key

Expand Down

0 comments on commit 3100d2a

Please sign in to comment.