mirror of
https://github.com/MacDownApp/macdown.git
synced 2026-06-16 12:44:38 +00:00
19 lines
412 B
Python
19 lines
412 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
_NOTHING = object()
|
|
|
|
try:
|
|
import configparser
|
|
except ImportError: # Python 2.
|
|
import ConfigParser as configparser
|
|
|
|
class ConfigParser(configparser.SafeConfigParser):
|
|
"""Compatibility layer.
|
|
"""
|
|
def read_file(self, f, source=None):
|
|
return self.readfp(f, source)
|
|
|
|
else:
|
|
ConfigParser = configparser.ConfigParser
|