Skip to content

Commit

Permalink
Fix Python 2.6 compatibility issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
eseraygun committed Jan 4, 2014
1 parent 1ad851a commit 517c65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alignment/profile.py
Expand Up @@ -32,7 +32,7 @@ def sorted(self):

def probabilities(self):
t = sum(self.__weights.itervalues())
return {e: float(w) / t for e, w in self.__weights.iteritems()}
return dict((e, float(w) / t) for e, w in self.__weights.iteritems())

def toDict(self):
return self.__weights
Expand Down

0 comments on commit 517c65e

Please sign in to comment.