Skip to content

Commit

Permalink
Merge pull request #23 from lobobabysaurus/master
Browse files Browse the repository at this point in the history
Updated EnvironmentDump to support Python 3
  • Loading branch information
frankstratton committed Aug 15, 2016
2 parents d73c74e + 9d304f2 commit 98c1046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion healthcheck/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import imp
import json
import os
import six
import socket
import sys
import time
Expand Down Expand Up @@ -156,7 +157,7 @@ def add_section(self, name, func):

def dump_environment(self):
data = {}
for (name, func) in self.functions.iteritems():
for (name, func) in six.iteritems(self.functions):
data[name] = func()

return json.dumps(data), 200, {'Content-Type': 'application/json'}
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pylint==1.2.1
pep8==1.5.7
six==1.10.0

0 comments on commit 98c1046

Please sign in to comment.