From 2d21890c2d436f3a03a9fcbbcd0e2261396e8218 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 26 Apr 2010 21:41:53 +0200 Subject: defaults.commands: use octal literal instead of decimal number in chmod() --- ranger/defaults/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py index 6175b92c..43e43a6b 100644 --- a/ranger/defaults/commands.py +++ b/ranger/defaults/commands.py @@ -401,7 +401,7 @@ class chmod(Command): try: mode = int(mode, 8) - if mode < 0 or mode > 511: + if mode < 0 or mode > 0o777: raise ValueError except ValueError: self.fm.notify("Need an octal number between 0 and 777!", bad=True) -- cgit 1.4.1-2-gfad0 e='master'>master mirror of ~rjarry's aerc fork - a pretty good email clientakspecs <akspecs@tilde.institute>
about summary refs log blame commit diff stats
path: root/worker/handler_notmuch.go
blob: b1e210c87faa85f3c569ea34927e426ba0078d50 (plain) (tree)
1
2
3
4
5