Commit ff791bb5 authored by Hamza Dely's avatar Hamza Dely Committed by Valentin Samir

Python 3 compatibility

parent b9276cdb
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function
import os
import sys
import datetime
import subprocess
import argparse
import pwd
import ConfigParser
import ConfigParser
except ImportError:
import configparser
from functools import total_ordering
......@@ -574,7 +579,7 @@ class Key(object):
return isinstance(y, Key) and y._path == self._path
if __name__ == '__main__':
config_parser = ConfigParser.ConfigParser()
config_parser = configparser.ConfigParser()
config_file = os.path.abspath(os.path.join(os.path.dirname(__file__), 'config.ini'))
if os.path.isfile(config_file):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment