summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-26 21:41:53 +0200
committerhut <hut@lavabit.com>2010-04-26 21:41:53 +0200
commit2d21890c2d436f3a03a9fcbbcd0e2261396e8218 (patch)
tree9d44fb6bad5674844dcf83c43440307d0036d27d
parent4c5e60cbe14cde745d8590cfcc3f098d3e060ca4 (diff)
downloadranger-2d21890c2d436f3a03a9fcbbcd0e2261396e8218.tar.gz
defaults.commands: use octal literal instead of decimal number in chmod()
-rw-r--r--ranger/defaults/commands.py2
1 files changed, 1 insertions, 1 deletions
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)