Remove python2 support
This commit is contained in:
1 parent
93572fb734
commit
76af6f739d
2 files changed
+4
-9
No files matched your search
@@ -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)
|
||||
|
||||
+2
-8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user