mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 10:22:13 +01:00
remove unittest2 import (py < 2.7)
This commit is contained in:
parent
e82080aec6
commit
ce8d7bf9f1
1 changed files with 1 additions and 5 deletions
|
|
@ -21,13 +21,9 @@ import sys
|
|||
import os
|
||||
import tempfile
|
||||
import shutil
|
||||
import unittest
|
||||
from contextlib import contextmanager
|
||||
|
||||
# Use unittest2 on Python < 2.7.
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
# Mangle the search path to include the beets sources.
|
||||
sys.path.insert(0, '..') # noqa
|
||||
|
|
|
|||
Loading…
Reference in a new issue