Merge pull request #2196 from coolo/fix_json

oqamaint: Take the default modules
This commit is contained in:
Stephan Kulow 2019-09-04 13:42:04 +02:00 committed by GitHub
commit 0f9d84a049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View File

@ -3,7 +3,7 @@
# standard library # standard library
import logging import logging
import os.path as opa import os.path as opa
import simplejson as json import json
import sys import sys
# external dependency # external dependency

View File

@ -14,16 +14,8 @@ import ReviewBot
from oqamaint.suse import SUSEUpdate from oqamaint.suse import SUSEUpdate
try: from xml.etree import cElementTree as ET
from xml.etree import cElementTree as ET import json
except ImportError:
from xml.etree import ElementTree as ET
try:
import simplejson as json
except ImportError:
import json
QA_UNKNOWN = 0 QA_UNKNOWN = 0
QA_INPROGRESS = 1 QA_INPROGRESS = 1