Skip to content

Commit c60ef4c

Browse files
committed
Fix ImportError reported in issue #24
1 parent 3a7a809 commit c60ef4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
coloredlogs >= 5.1
44
executor >= 21.3
5-
humanfriendly >= 6.1
5+
humanfriendly >= 7.1
66
naturalsort >= 1.4
77
property-manager >= 2.3
88
python-dateutil >= 2.2

rotate_backups/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# rotate-backups: Simple command line interface for backup rotation.
22
#
33
# Author: Peter Odding <peter@peterodding.com>
4-
# Last Change: February 14, 2020
4+
# Last Change: February 18, 2020
55
# URL: https://github.com/xolox/python-rotate-backups
66

77
"""
@@ -208,10 +208,10 @@
208208

209209
# External dependencies.
210210
import coloredlogs
211-
from coloredlogs import WINDOWS
212211
from coloredlogs.syslog import enable_system_logging
213212
from executor import validate_ionice_class
214213
from humanfriendly import coerce_boolean, parse_path, pluralize
214+
from humanfriendly.compat import on_windows
215215
from humanfriendly.terminal import usage
216216
from verboselogs import VerboseLogger
217217

@@ -235,7 +235,7 @@ def main():
235235
kw = dict(include_list=[], exclude_list=[])
236236
parallel = False
237237
use_sudo = False
238-
use_syslog = (not WINDOWS)
238+
use_syslog = (not on_windows())
239239
# Internal state.
240240
selected_locations = []
241241
# Parse the command line arguments.

0 commit comments

Comments
 (0)