This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 11 Nov 2016 15:20, Joseph Myers wrote: > +import os.path this import is unnecessary > +class Context: please no old style classes. all of them should inherit object. class Context(object): > + > + """The global state associated with builds in a given directory.""" don't put a blank line between the class and its docstring. > + os.chmod(self.wrapper, > + (stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP| > + stat.S_IROTH|stat.S_IXOTH)) the stat constants are unreadable imo. better to never use them and stick to sane octals like 0644 and such. -mike
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |