Skip to content

Commit

Permalink
Fix backend project_info issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Arellano committed Aug 17, 2018
1 parent f4d4a2d commit 88fa18a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python/pants/build_graph/intermediate_target_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from builtins import str
from hashlib import sha1

from future.utils import string_types
from future.utils import PY3, string_types

from pants.base.exceptions import TargetDefinitionException
from pants.build_graph.address import Address
Expand All @@ -16,9 +16,9 @@

def hash_target(address, suffix):
hasher = sha1()
hasher.update(address)
hasher.update(suffix)
return hasher.hexdigest()
hasher.update(address.encode('utf-8'))
hasher.update(suffix.encode('utf-8'))
return hasher.hexdigest() if PY3 else hasher.hexdigest().decode('utf-8')


class IntermediateTargetFactoryBase(AbstractClass):
Expand Down

0 comments on commit 88fa18a

Please sign in to comment.