Skip to content

Commit

Permalink
Remove python2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Chronial committed Apr 19, 2020
1 parent 93572fb commit 76af6f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
10 changes: 2 additions & 8 deletions snapraid-runner.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,13 +12,7 @@
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
Expand Down

0 comments on commit 76af6f7

Please sign in to comment.