diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-23 21:02:09 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-23 21:02:09 +0100 |
commit | a231ffb8d5e49cff8401137b89233d4f51c7f802 (patch) | |
tree | af51f561630a762c46fe4fd1f56cdff4df67e137 /sysrss.py | |
parent | Update e-mail (diff) | |
download | sysrss-master.tar.gz sysrss-master.tar.bz2 sysrss-master.tar.xz |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rwxr-xr-x | sysrss (renamed from sysrss.py) | 29 |
1 files changed, 5 insertions, 24 deletions
@@ -1,23 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -''' -sysrss – Let your system generate a maintenance notification RSS - -Copyright © 2012, 2013 Mattias Andrée (m@maandree.se) - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -''' +# See LICENSE file for copyright and license details. import os import sys @@ -28,8 +11,7 @@ from subprocess import Popen, PIPE ''' -Hack to enforce UTF-8 in output (in the future, if you see anypony not using utf-8 in -programs by default, report them to Princess Celestia so she can banish them to the moon) +Hack to enforce UTF-8 in output @param text:str The text to print (empty string is default) @param end:str The appendix to the text to print (line breaking is default) @@ -67,13 +49,13 @@ def flush(): ''' -Mane class +Main class @dependency util-linux::uuidgen ''' class SysRSS: ''' - Mane method and constructor + Main method and constructor ''' def __init__(self): self.root = os.getenv('HOME') + '/.sysrss/' @@ -315,8 +297,7 @@ class Site: ''' -Execute mane method if started using this file +Execute main method if started using this file ''' if __name__ == '__main__': SysRSS() - |