From: Макс Лапшин Date: Tue, 26 Jan 2010 08:13:25 +0000 (+0300) Subject: fixed outer patch for parsing config X-Git-Url: http://git.neszt.hu/?a=commitdiff_plain;h=405003de64b446884453686fb553f8ed37a85f16;p=mysql2postgres fixed outer patch for parsing config --- 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)