FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-07-2012, 11:53 PM
"Brian C. Lane"
 
Default flags.py: add new BootArgs() object for dealing with boot args

On Tue, Feb 07, 2012 at 06:02:38PM -0500, Will Woods wrote:
> This replaces Flags.cmdline (and Flags.createCmdlineDict()) with a new
> BootArgs class.
>
> BootArgs' parsing is slightly cleaner and it reads from other data
> locations (/run/initramfs/etc/cmdline for example).
>
> It's a subclass of OrderedDict, so things specified later
> on the boot commandline can override things near the start.
> ---

Cosmetic stuff that bugs me

1. docstrings should be """ not '
2. multiline docstrings should end with """ on a line by itself
3. single line if's should still have the execution block on the next
line. eg.

if files:
self.read(files)

Functionally it looks good.

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org