diff --git a/README.md b/README.md index 41bc905..fe4130e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ via email. All this is configurable. It can be run manually, but its main purpose is to be run via cronjob/windows scheduler. -It supports Windows, Linux and macOS and runs on both python2 and python3. +It supports Windows, Linux and macOS and requires at least python3.7. ## How to use * If you don’t already have it, download and install @@ -28,6 +28,7 @@ It supports Windows, Linux and macOS and runs on both python2 and python3. ## Changelog ### Unreleased +* Remove (broken) python2 support * Fix snapraid output encoding handling (by hyyz17200, PR-31) ### v0.4 (17 Aug 2019) diff --git a/snapraid-runner.py b/snapraid-runner.py index 3fb9389..e8aadce 100644 --- a/snapraid-runner.py +++ b/snapraid-runner.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 -# -*- coding: utf8 -*- from __future__ import division import argparse +import configparser import logging import logging.handlers import os.path @@ -12,13 +12,7 @@ import threading import time import traceback from collections import Counter, defaultdict - -if sys.version_info[0] > 2: - import configparser - from io import StringIO -else: - import ConfigParser as configparser - from cStringIO import StringIO +from io import StringIO # Global variables config = None