summary refs log tree commit diff stats
path: root/ranger/colorschemes
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-13 16:23:01 +0100
committerhut <hut@lavabit.com>2009-12-13 16:23:01 +0100
commit4c05e43d11430fbfd8a5d86ae0070e24775251b1 (patch)
tree1b7f269e3e1c025a06b08ca2396eaa9f228c3732 /ranger/colorschemes
parentf2d8598d2b0ce36a8f275800cd2d0164ec672abb (diff)
downloadranger-4c05e43d11430fbfd8a5d86ae0070e24775251b1.tar.gz
clean ups, comments
Diffstat (limited to 'ranger/colorschemes')
-rw-r--r--ranger/colorschemes/__init__.py5
-rw-r--r--ranger/colorschemes/default.py3
-rw-r--r--ranger/colorschemes/jungle.py3
3 files changed, 8 insertions, 3 deletions
diff --git a/ranger/colorschemes/__init__.py b/ranger/colorschemes/__init__.py
index 6c710bd8..8b543d67 100644
--- a/ranger/colorschemes/__init__.py
+++ b/ranger/colorschemes/__init__.py
@@ -1,3 +1,5 @@
+"""Colorschemes are required to be located here,
+or in the CONFDIR/colorschemes/ directory"""
 from ranger.ext.get_all_modules import get_all_modules
 from os.path import expanduser, dirname, exists, join
 
@@ -9,7 +11,8 @@ confpath = expanduser('~/.ranger')
 if exists(join(confpath, 'colorschemes')):
 	initpy = join(confpath, 'colorschemes/__init__.py')
 	if not exists(initpy):
-		open(initpy, 'w').write("""from ranger.ext.get_all_modules import get_all_modules
+		open(initpy, 'w').write("""# Automatically generated:
+from ranger.ext.get_all_modules import get_all_modules
 from os.path import dirname
 
 __all__ = get_all_modules(dirname(__file__))
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py
index ac54bf7f..b35aa8e1 100644
--- a/ranger/colorschemes/default.py
+++ b/ranger/colorschemes/default.py
@@ -32,7 +32,8 @@ class Default(ColorScheme):
 			if context.directory:
 				fg = blue
 
-			elif context.executable and not any((context.media, context.container, context.document)):
+			elif context.executable and not \
+					any((context.media, context.container, context.document)):
 				attr |= bold
 				fg = green
 
diff --git a/ranger/colorschemes/jungle.py b/ranger/colorschemes/jungle.py
index eb70e5aa..41e2d912 100644
--- a/ranger/colorschemes/jungle.py
+++ b/ranger/colorschemes/jungle.py
@@ -26,7 +26,8 @@ class Default(ColorScheme):
 			if context.directory:
 				fg = green # trees =)
 
-			elif context.executable and not any((context.media, context.container)):
+			elif context.executable and not \
+					any((context.media, context.container)):
 				fg = yellow # banananas
 
 			if context.link: