mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-08-02 14:43:02 +02:00
Fixing configparser import for Python 3.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
from collections import namedtuple
|
||||
from ConfigParser import ConfigParser
|
||||
|
||||
try:
|
||||
# Python 2
|
||||
from ConfigParser import ConfigParser
|
||||
except ImportError:
|
||||
# Python 3
|
||||
from configparser import ConfigParser
|
||||
|
||||
|
||||
CONFIG_SECTION_LOCATION = 'location'
|
||||
|
||||
Reference in New Issue
Block a user