Skip to content

Commit

Permalink
fix datatype() declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Apr 27, 2018
1 parent 1c5218b commit 94f68f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/python/pants/backend/native/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pants.util.osutil import get_normalized_os_name


class Platform(datatype('Platform', ['normalized_os_name'])):
class Platform(datatype(['normalized_os_name'])):

def __new__(cls):
return super(Platform, cls).__new__(cls, get_normalized_os_name())
Expand Down
4 changes: 1 addition & 3 deletions src/python/pants/backend/python/tasks/setup_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ def _setup_command(self):
return self.__setup_command


class SetupPyInvocationEnvironment(datatype('SetupPyInvocationEnvironment', [
'joined_path',
])):
class SetupPyInvocationEnvironment(datatype(['joined_path'])):

def as_env_dict(self):
return {
Expand Down

0 comments on commit 94f68f5

Please sign in to comment.