Remove python2 support

This commit is contained in:
Chronial committed 2020-04-19 14:40:30 +02:00
1 parent 93572fb734
commit 76af6f739d
2 files changed
+4 -9

No files matched your search

+2 -1
View File
@@ -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 It can be run manually, but its main purpose is to be run via cronjob/windows
scheduler. 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 ## How to use
* If you don’t already have it, download and install * 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 ## Changelog
### Unreleased ### Unreleased
* Remove (broken) python2 support
* Fix snapraid output encoding handling (by hyyz17200, PR-31) * Fix snapraid output encoding handling (by hyyz17200, PR-31)
### v0.4 (17 Aug 2019) ### v0.4 (17 Aug 2019)
+2 -8
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import division from __future__ import division
import argparse import argparse
import configparser
import logging import logging
import logging.handlers import logging.handlers
import os.path import os.path
@@ -12,13 +12,7 @@ import threading
import time import time
import traceback import traceback
from collections import Counter, defaultdict from collections import Counter, defaultdict
from io import StringIO
if sys.version_info[0] > 2:
import configparser
from io import StringIO
else:
import ConfigParser as configparser
from cStringIO import StringIO
# Global variables # Global variables
config = None config = None