1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-21 22:18:52 +02:00

Clean imports up, drop python 2 fallbacks

This commit is contained in:
2022-07-28 12:28:33 +02:00
parent e16e196fa1
commit 229913a77f
36 changed files with 216 additions and 335 deletions

View File

@@ -1,16 +1,12 @@
try:
# Works up to Python 3.8, needed for Python < 3.3 (inc 2.7)
from xml.etree import cElementTree as ET
except ImportError:
# will import a fast implementation from 3.3 onwards, needed
# for 3.9+
from xml.etree import ElementTree as ET
import os
from xml.etree import ElementTree as ET
import osc.core
import osc.oscerr
import os
from .common import OscTestCase
FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'request_fixtures')
def suite():