mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-11 11:46:02 +00:00
Remove obsolete conditional imports (#548)
Remove conditional imports left over from python2/3 support.
This commit is contained in:
parent
6a0b95a4bd
commit
38f5dafc1c
2 changed files with 2 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import json
|
||||
import os
|
||||
import string
|
||||
from configparser import RawConfigParser
|
||||
from itertools import chain
|
||||
|
||||
from click_threading import get_ui_worker
|
||||
|
|
@ -10,10 +11,6 @@ from .utils import storage_class_from_config
|
|||
from .. import PROJECT_HOME, exceptions
|
||||
from ..utils import cached_property, expand_path
|
||||
|
||||
try:
|
||||
from ConfigParser import RawConfigParser
|
||||
except ImportError:
|
||||
from configparser import RawConfigParser
|
||||
|
||||
GENERAL_ALL = frozenset(['status_path'])
|
||||
GENERAL_REQUIRED = frozenset(['status_path'])
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import importlib
|
|||
import itertools
|
||||
import json
|
||||
import os
|
||||
import queue
|
||||
import sys
|
||||
|
||||
from atomicwrites import atomic_write
|
||||
|
|
@ -19,11 +20,6 @@ from .. import BUGTRACKER_HOME, DOCS_HOME, exceptions
|
|||
from ..sync import IdentConflict, PartialSync, StorageEmpty, SyncConflict
|
||||
from ..utils import expand_path, get_storage_init_args
|
||||
|
||||
try:
|
||||
import Queue as queue
|
||||
except ImportError:
|
||||
import queue
|
||||
|
||||
|
||||
STATUS_PERMISSIONS = 0o600
|
||||
STATUS_DIR_PERMISSIONS = 0o700
|
||||
|
|
|
|||
Loading…
Reference in a new issue