Commit 57f3198e authored by Michal Čihař's avatar Michal Čihař

Python 3 proof class cration

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent abf91dcc
......@@ -22,7 +22,10 @@ from __future__ import print_function
from unittest import SkipTest
import time
import os
import new
try:
from types import new_class
except ImportError:
from new import classobj as new_class
import json
import base64
from six.moves.http_client import HTTPConnection
......@@ -324,7 +327,7 @@ def create_extra_classes():
classdict.update({
'caps': EXTRA_PLATFORMS[platform],
})
classes[name] = new.classobj(name, (SeleniumTests,), classdict)
classes[name] = new_class(name, (SeleniumTests,), classdict)
globals().update(classes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment