Changeset 11051


Ignore:
Timestamp:
03/10/10 15:00:48 (2 years ago)
Author:
Sewi
Message:

Perl tidy

Location:
trunk/Padre/lib/Padre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/TaskManager.pm

    r11050 r11051  
    428428 
    429429    my $loopcount; 
    430 # Changing the selection seems to solve the endless-loop problem 
    431 #   while ( threads->list(threads::running) >= 2 ) { 
     430 
     431    # Changing the selection seems to solve the endless-loop problem 
     432    #   while ( threads->list(threads::running) >= 2 ) { 
    432433    while ( threads->list(threads::joinable) >= 2 ) { 
    433         for (threads->list(threads::joinable)) { 
     434        for ( threads->list(threads::joinable) ) { 
    434435            $_->join; 
    435436        } 
    436         last if $loopcount > 125; # Wait no more than two minutes 
    437         # Pass time slices to the threads for finishing 
     437        last    if $loopcount > 125; # Wait no more than two minutes 
     438                                     # Pass time slices to the threads for finishing 
    438439        sleep 1 if ++$loopcount > 5; 
    439440    } 
  • trunk/Padre/lib/Padre/Wx/Dialog/RegexEditor.pm

    r11049 r11051  
    8282            value => { 
    8383                '00[:alpha:]'  => Wx::gettext('Alphabetic characters'), 
    84                 '01[:alnum:]' => Wx::gettext('Alphanumeric characters'), 
     84                '01[:alnum:]'  => Wx::gettext('Alphanumeric characters'), 
    8585                '02[:ascii:]'  => Wx::gettext('7-bit US-ASCII character'), 
    8686                '03[:blank:]'  => Wx::gettext('Space and tab'), 
  • trunk/Padre/lib/Padre/Wx/Dialog/WhereFrom.pm

    r11042 r11051  
    44use strict; 
    55use warnings; 
    6 use Padre::Wx         (); 
    7 use Padre::Wx::Dialog (); 
     6use Padre::Wx               (); 
     7use Padre::Wx::Dialog       (); 
    88use Padre::Task::HTTPClient (); 
    99 
     
    3232            ], 
    3333        ], 
    34         [   [ 'Wx::Button', '_ok_',     Wx::wxID_OK ],[], 
     34        [   [ 'Wx::Button', '_ok_', Wx::wxID_OK ], [], 
    3535            [ 'Wx::Button', '_cancel_', Wx::gettext("Skip feedback") ], 
    3636        ], 
     
    5959    my $config = Padre->ide->config; 
    6060 
    61     if (! $config->feedback_done) { 
    62     $config->set('feedback_done',1); 
    63     $config->write; 
     61    if ( !$config->feedback_done ) { 
     62        $config->set( 'feedback_done', 1 ); 
     63        $config->write; 
    6464    } 
    6565 
     
    7676    $dialog->Destroy; 
    7777 
    78     if (! $config->feedback_done) { 
     78    if ( !$config->feedback_done ) { 
    7979 
    80     my $url = 'http://padre.perlide.org/wherefrom.cgi'; 
    81     my $args = {from => $data->{_referer_}}; 
    82     my $http = Padre::Task::HTTPClient->new( 
    83         URL => $url, 
    84         query => $args, 
    85     )->run; 
     80        my $url = 'http://padre.perlide.org/wherefrom.cgi'; 
     81        my $args = { from => $data->{_referer_} }; 
     82        my $http = Padre::Task::HTTPClient->new( 
     83            URL  => $url, 
     84            query => $args, 
     85        )->run; 
    8686 
    87     $config->set('feedback_done',1); 
    88     $config->write; 
     87        $config->set( 'feedback_done', 1 ); 
     88        $config->write; 
    8989 
    9090    } 
Note: See TracChangeset for help on using the changeset viewer.