fixed outer patch for parsing config
authorМакс Лапшин <max.lapshin@undev.ru>
Tue, 26 Jan 2010 08:13:25 +0000 (11:13 +0300)
committerМакс Лапшин <max.lapshin@undev.ru>
Tue, 26 Jan 2010 08:13:25 +0000 (11:13 +0300)
mysql2psql

index 5392739..36a32de 100755 (executable)
@@ -641,16 +641,8 @@ end
 
 
 
-
 def parse_tablenames(tables)
-       list = Array.new
-       tables.each do |table|
-               t = table.strip
-               if t !~ /^#/
-                       list.push t
-               end
-       end
-       list
+  tables.map {|table| table.strip}.reject {|t| t =~ /^#/}
 end
 
 def read_config(filepath)