Skip to content
Snippets Groups Projects
Commit 497c8ac0 authored by Radko Krkoš's avatar Radko Krkoš Committed by Pavel Kácha
Browse files

Server: Reorder imports and prepare import for Py3

parent ca27ce31
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011-2015 Cesnet z.s.p.o
......@@ -8,21 +8,26 @@ from __future__ import print_function
import sys
import os
from os import path
import logging
import logging.handlers
import ConfigParser
from traceback import format_tb
import M2Crypto.X509
import json
import MySQLdb as my
import MySQLdb.cursors as mycursors
import re
import email.utils
from traceback import format_tb
from collections import namedtuple
from time import sleep
from urlparse import parse_qs
from os import path
from random import randint
import M2Crypto.X509
import MySQLdb as my
import MySQLdb.cursors as mycursors
if sys.version_info > (3, 0):
import configparser as ConfigParser
from urllib.parse import parse_qs
else:
import ConfigParser
from urlparse import parse_qs
# for local version of up to date jsonschema
sys.path.append(path.join(path.dirname(__file__), "..", "lib"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment