From fe41719f7ec330151861fd3f5d9cb9b251770630 Mon Sep 17 00:00:00 2001 From: Josh Sacks Date: Wed, 25 Apr 2018 13:11:26 -0700 Subject: [PATCH] Small change to enable library to run under Python2.7 --- FuelSDK/client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FuelSDK/client.py b/FuelSDK/client.py index 9c91251..5027225 100644 --- a/FuelSDK/client.py +++ b/FuelSDK/client.py @@ -1,6 +1,11 @@ import os import logging -import configparser + +# Python2.7 compatibility- try loading Python3 library, then fall back to 2.7 +try: + import configparser +except: + import ConfigParser as configparser import time import json