Duplication of rstrip unnecessary in link_assets function
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 12 Aug 2012 16:49:14 +0000 (12:49 -0400)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 12 Aug 2012 16:49:14 +0000 (12:49 -0400)
Thanks for catching AVRS!

mediagoblin/gmg_commands/theme.py

index 98485bedd0927374e2ae92b3dbff21038c39e3ed..fd914a96d81ebfea0e36b4a06aec445ad49a4c83 100644 (file)
@@ -50,7 +50,7 @@ def link_assets(theme, link_dir, printer=simple_printer):
     which should be printable.
     """
     link_dir = link_dir.rstrip(os.path.sep)
-    link_parent_dir = os.path.split(link_dir.rstrip(os.path.sep))[0]
+    link_parent_dir = os.path.split(link_dir)[0]
 
     results = []