From 405003de64b446884453686fb553f8ed37a85f16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=9C=D0=B0=D0=BA=D1=81=20=D0=9B=D0=B0=D0=BF=D1=88=D0=B8?= =?utf8?q?=D0=BD?= Date: Tue, 26 Jan 2010 11:13:25 +0300 Subject: [PATCH] fixed outer patch for parsing config --- mysql2psql | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mysql2psql b/mysql2psql index 5392739..36a32de 100755 --- a/mysql2psql +++ b/mysql2psql @@ -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) -- 2.1.4