diff options
Diffstat (limited to 'client/gentoostats/payload.py')
-rw-r--r-- | client/gentoostats/payload.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/gentoostats/payload.py b/client/gentoostats/payload.py index b2c459f..569b69b 100644 --- a/client/gentoostats/payload.py +++ b/client/gentoostats/payload.py @@ -1,7 +1,13 @@ +from __future__ import print_function import sys import pprint -import ConfigParser + +try: + import configparser as ConfigParser +except ImportError: + import ConfigParser + from gentoostats.environment import Environment from gentoostats.packages import Packages from gentoostats.metadata import Metadata @@ -79,4 +85,4 @@ class Payload(object): if human: pprint.pprint(self.payload) else: - print self.payload + print(self.payload) |