import re
from lxml.html import fromstring
-try:
- import json
-except ImportError as e:
- import simplejson as json
+import json
import os
import shutil
import sys
import six
from six.moves import urllib
-try:
- import json
-except ImportError as e:
- import simplejson as json
+import json
from htsworkflow.auth import apidata
from htsworkflow.util import api
import re
from six.moves import StringIO
-try:
- import json
-except ImportError as e:
- import simplejson as json
+import json
from django.test import TestCase
from django.utils.encoding import smart_text
import random
import logging
-# try to deal with python <2.6
-try:
- import json
-except ImportError:
- import simplejson as json
+import json
import os
from optparse import OptionGroup
register_search_plugin('Inventory Item', item_search)
-try:
- import json
-except ImportError as e:
- import simplejson as json
+import json
INVENTORY_CONTEXT_DEFAULTS = {
'app_name': 'Inventory Tracker',
import os
import sys
-try:
- import json
-except ImportError as e:
- import simplejson as json
+import json
from django.views.decorators.csrf import csrf_exempt
from django.core.exceptions import ObjectDoesNotExist