From: Oleg Broytman Date: Mon, 25 Jul 2016 14:36:30 +0000 (+0300) Subject: Remove wrong copyright lines, fix module docstrings X-Git-Tag: 2.1.3~2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8d79317cdc8220ff3c2192e68fc1dfc749c3ea1c;p=m_lib.git Remove wrong copyright lines, fix module docstrings --- diff --git a/README.txt b/README.txt index 0a798dd..e1cb476 100644 --- a/README.txt +++ b/README.txt @@ -1,4 +1,4 @@ -Broytman Library for Python, Copyright (C) 1996-2013 PhiloSoft Design +Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design Author: Oleg Broytman License: GPL diff --git a/m_lib/__init__.py b/m_lib/__init__.py index 438c49c..541bfc8 100644 --- a/m_lib/__init__.py +++ b/m_lib/__init__.py @@ -1 +1 @@ -"Broytman Library for Python, Copyright (C) 1996-2001 PhiloSoft Design" +"""Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design""" diff --git a/m_lib/clock/__init__.py b/m_lib/clock/__init__.py index 7719ef8..2cc78b9 100644 --- a/m_lib/clock/__init__.py +++ b/m_lib/clock/__init__.py @@ -1 +1 @@ -"Broytman Clock Library for Python, Copyright (C) 1996-2001 PhiloSoft Design" +"""Broytman Clocks for Python""" diff --git a/m_lib/clock/mkclock.py b/m_lib/clock/mkclock.py index f65c766..7841ec8 100755 --- a/m_lib/clock/mkclock.py +++ b/m_lib/clock/mkclock.py @@ -1,9 +1,5 @@ #! /usr/bin/env python -""" - Test if current interpreter do not have clock() and define it as need - - Written by Broytman, Jul 1997. Copyright (C) 1997 PhiloSoft Design -""" +"""Test if current interpreter do not have clock() and define it as need""" import sys, time diff --git a/m_lib/clock/tstclock.py b/m_lib/clock/tstclock.py index 827fa1d..5dd1737 100755 --- a/m_lib/clock/tstclock.py +++ b/m_lib/clock/tstclock.py @@ -1,9 +1,5 @@ #! /usr/bin/env python -""" - Define clock() for systems that do not have it - - Written by Broytman, Jul 1997. Copyright (C) 1997 PhiloSoft Design -""" +"""Define clock() for systems that do not have it""" from clock import clock from time import sleep diff --git a/m_lib/defenc.py b/m_lib/defenc.py index edcd80b..90add9d 100755 --- a/m_lib/defenc.py +++ b/m_lib/defenc.py @@ -1,8 +1,5 @@ #! /usr/bin/env python -"""Get default encoding - - Written by Oleg Broytman. Copyright (C) 2007-2016 PhiloSoft Design. -""" +"""Get default encoding""" __all__ = ['default_encoding'] diff --git a/m_lib/flad/__init__.py b/m_lib/flad/__init__.py index 89dcb8f..e561eae 100644 --- a/m_lib/flad/__init__.py +++ b/m_lib/flad/__init__.py @@ -1 +1 @@ -"Broytman Flat ASCII Database for Python, Copyright (C) 1996-2001 PhiloSoft Design" +"""Broytman Flat ASCII Database for Python""" diff --git a/m_lib/flad/flad.py b/m_lib/flad/flad.py index 05703c1..830fdfd 100644 --- a/m_lib/flad/flad.py +++ b/m_lib/flad/flad.py @@ -1,8 +1,6 @@ """ Flat ASCII Database. This module implements a very simple database on the flat ASCII files. - - Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design """ diff --git a/m_lib/flad/fladc.py b/m_lib/flad/fladc.py index bbde040..3f5c354 100644 --- a/m_lib/flad/fladc.py +++ b/m_lib/flad/fladc.py @@ -1,7 +1,5 @@ """ Flat ASCII Database to implement VERY simple config files. - - Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design """ diff --git a/m_lib/flad/fladm.py b/m_lib/flad/fladm.py index 9e835bc..c0e2886 100644 --- a/m_lib/flad/fladm.py +++ b/m_lib/flad/fladm.py @@ -1,7 +1,5 @@ """ Flat ASCII Database with "must" keys - - Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design """ diff --git a/m_lib/flad/fladw.py b/m_lib/flad/fladw.py index fe48b00..c50d410 100644 --- a/m_lib/flad/fladw.py +++ b/m_lib/flad/fladw.py @@ -1,7 +1,5 @@ """ Flat ASCII Database to load WIN.INI-like files. - - Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design """ diff --git a/m_lib/flog.py b/m_lib/flog.py index b46bae5..2c01d85 100755 --- a/m_lib/flog.py +++ b/m_lib/flog.py @@ -1,8 +1,5 @@ #! /usr/bin/env python -"""File logger - - Written by Broytman, Dec 1997. Copyright (C) 1997 PhiloSoft Design. -""" +"""File logger""" from time import * diff --git a/m_lib/hash/MKhash.py b/m_lib/hash/MKhash.py index 707d9fe..812a14a 100644 --- a/m_lib/hash/MKhash.py +++ b/m_lib/hash/MKhash.py @@ -1,8 +1,4 @@ -"""Provide a (g)dbm-compatible interface to MetaKit. -Author: Oleg Broytman -Copyright (C) 2001-2002 PhiloSoft Design -License: Python""" - +"""(g)dbm-compatible interface to MetaKit""" import sys try: diff --git a/m_lib/hash/ZODBhash.py b/m_lib/hash/ZODBhash.py index 13073c5..fb1361d 100644 --- a/m_lib/hash/ZODBhash.py +++ b/m_lib/hash/ZODBhash.py @@ -1,8 +1,4 @@ -"""Provide a (g)dbm-compatible interface to ZODB. -Author: Oleg Broytman -Copyright (C) 2001-2002 PhiloSoft Design -License: Python""" - +"""(g)dbm-compatible interface to ZODB""" import sys try: diff --git a/m_lib/hash/__init__.py b/m_lib/hash/__init__.py index 626db2b..dfd88f0 100644 --- a/m_lib/hash/__init__.py +++ b/m_lib/hash/__init__.py @@ -1,8 +1,6 @@ -"""Extended disk hashes package. It extends anydbm/whichdb with ZODB and -MetaKit-based hashes. -Author: Oleg Broytman -Copyright (C) 2001-2003 PhiloSoft Design -License: Python""" +"""Extended disk hashes package. + +It extends anydbm/whichdb with ZODB and MetaKit-based hashes.""" __all__ = ["zshelve", "ZODBhash", "MKhash"] diff --git a/m_lib/hash/zshelve.py b/m_lib/hash/zshelve.py index b9feb14..10bb367 100644 --- a/m_lib/hash/zshelve.py +++ b/m_lib/hash/zshelve.py @@ -1,8 +1,4 @@ -"""Compressed shelves. -Author: Oleg Broytman -Copyright (C) 2001-2003 PhiloSoft Design -License: Python""" - +"""Compressed shelves""" from shelve import DbfilenameShelf from zlib import compress, decompress diff --git a/m_lib/lazy/__init__.py b/m_lib/lazy/__init__.py index 4dedfba..d688c2f 100644 --- a/m_lib/lazy/__init__.py +++ b/m_lib/lazy/__init__.py @@ -1,4 +1,4 @@ -"Broytman WWW Library for Python, Copyright (C) 1996-2003 PhiloSoft Design" +"""Broytman WWW Library for Python""" __all__ = [ diff --git a/m_lib/lazy/dict.py b/m_lib/lazy/dict.py index c6750e4..22fd342 100644 --- a/m_lib/lazy/dict.py +++ b/m_lib/lazy/dict.py @@ -1,4 +1,4 @@ -"Lazy dictionaries calculate self content upon first access" +"""Lazy dictionaries calculate self content upon first access""" class LazyDict: "Abstract parent of all lazy dictionaries" diff --git a/m_lib/lazy/imports.py b/m_lib/lazy/imports.py index 99eb032..482c3ec 100644 --- a/m_lib/lazy/imports.py +++ b/m_lib/lazy/imports.py @@ -1,4 +1,4 @@ -"Lazy imoport - import the module upon first request" +"""Lazy imoport - import the module upon first request""" try: diff --git a/m_lib/m_path.py b/m_lib/m_path.py index 6d20720..0131289 100755 --- a/m_lib/m_path.py +++ b/m_lib/m_path.py @@ -3,9 +3,6 @@ # # useful function(s) for manipulating paths # -# Author: Oleg Broytman -# Copyright (C) 2002 PhiloSoft Design -# _homedir = None diff --git a/m_lib/m_shutil.py b/m_lib/m_shutil.py index 10e5ebf..e4595c7 100755 --- a/m_lib/m_shutil.py +++ b/m_lib/m_shutil.py @@ -1,7 +1,6 @@ #! /usr/bin/env python -"""Broytman's shell utilities. Additional to shutil.py (standard library module) - - Written by Broytman, Oct 1997. Copyright (C) 1997 PhiloSoft Design. +""" +Shell utilities. Additional to shutil.py (standard library module). """ diff --git a/m_lib/mcrypt.py b/m_lib/mcrypt.py index d6ae1dc..acbead1 100755 --- a/m_lib/mcrypt.py +++ b/m_lib/mcrypt.py @@ -3,9 +3,6 @@ # # useful function(s) for module crypt # -# Author: Oleg Broytman -# Copyright (C) 1998-1999 PhiloSoft Design -# import random, crypt diff --git a/m_lib/md5wrapper.py b/m_lib/md5wrapper.py index 0c1a5f1..1cdac61 100755 --- a/m_lib/md5wrapper.py +++ b/m_lib/md5wrapper.py @@ -1,10 +1,6 @@ #! /usr/bin/env python """User wrapper for md5 builtin object""" -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 1997-2012 PhiloSoft Design" -__license__ = "GNU GPL" - __all__ = ['md5wrapper'] import sys diff --git a/m_lib/net/__init__.py b/m_lib/net/__init__.py index b557b3a..3766561 100644 --- a/m_lib/net/__init__.py +++ b/m_lib/net/__init__.py @@ -1,4 +1,4 @@ -"Broytman Net Library for Python, Copyright (C) 1996-2003 PhiloSoft Design" +"""Broytman Net Library for Python""" __all__ = [ diff --git a/m_lib/net/ftp/__init__.py b/m_lib/net/ftp/__init__.py index 7e30fda..d4beff8 100644 --- a/m_lib/net/ftp/__init__.py +++ b/m_lib/net/ftp/__init__.py @@ -1,4 +1,4 @@ -"Broytman WWW Library for Python, Copyright (C) 1996-2003 PhiloSoft Design" +"""Broytman FTP Library for Python""" __all__ = [ diff --git a/m_lib/net/ftp/ftpparse.py b/m_lib/net/ftp/ftpparse.py index cb4c569..1dcef0c 100755 --- a/m_lib/net/ftp/ftpparse.py +++ b/m_lib/net/ftp/ftpparse.py @@ -1,9 +1,7 @@ #! /usr/bin/env python """Parse output of FTP LIST command. Pure python implementation. - Author: Oleg Broytman . - Copyright (C) 2003-2005 PhiloSoft Design. - License: GPL. + See http://cr.yp.to/ftpparse.html, http://effbot.org/downloads#ftpparse, http://c0re.23.nu/c0de/ftpparsemodule/ and http://www.ocgy.ubc.ca/~tang/treeftp @@ -23,20 +21,6 @@ Definitely not covered: """ -__version__ = "1.1.2" -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2003-2005 PhiloSoft Design" - - -# ChangeLog: -# 2005-04-26 version 1.1.2 [phd] Changed some comments and URLs. -# 2003-07-23 version 1.1.1 [phd] Upgrade to Python 2.2: 0/1 => False/True. -# 2003-07-17 version 1.1.0 [phd] Great renaming. -# 2003-07-17 version 1.0.1 [phd] Preserve leading spaces in UNIX format. -# 2003-02-17 version 1.0.0 [phd] First public version. -# 2003-02-07 version 0.0.1 [phd] started the project. - - try: from mx import DateTime except ImportError: diff --git a/m_lib/net/sms.py b/m_lib/net/sms.py index 423fd4a..9b73390 100644 --- a/m_lib/net/sms.py +++ b/m_lib/net/sms.py @@ -1,4 +1,4 @@ -"SMS Transports by phd, corvin, r_sabitov" +"""SMS Transports by phd, corvin, r_sabitov""" # -*- coding: koi8-r -*- diff --git a/m_lib/net/www/__init__.py b/m_lib/net/www/__init__.py index 27e9a0b..b124cbb 100644 --- a/m_lib/net/www/__init__.py +++ b/m_lib/net/www/__init__.py @@ -1,4 +1,4 @@ -"Broytman WWW Library for Python, Copyright (C) 1996-2002 PhiloSoft Design" +"""Broytman WWW Library for Python""" __all__ = [ diff --git a/m_lib/net/www/dtml.py b/m_lib/net/www/dtml.py index f8f42ee..694d3ad 100644 --- a/m_lib/net/www/dtml.py +++ b/m_lib/net/www/dtml.py @@ -1,4 +1,4 @@ -"DTML utilities" +"""DTML utilities""" class standard_html: # Base class for using with ZTemplates def __init__(self, title): diff --git a/m_lib/net/www/html.py b/m_lib/net/www/html.py index 9a9ef6f..723f0c0 100644 --- a/m_lib/net/www/html.py +++ b/m_lib/net/www/html.py @@ -1,4 +1,4 @@ -"HTML parsers" +"""HTML parsers""" from HTMLParser import HTMLParser as _HTMLParser diff --git a/m_lib/net/www/serverpush.py b/m_lib/net/www/serverpush.py index 11f3c65..3bc880e 100644 --- a/m_lib/net/www/serverpush.py +++ b/m_lib/net/www/serverpush.py @@ -1,4 +1,4 @@ -"Server Push" +"""Server Push""" import sys, mimetools diff --git a/m_lib/net/www/url_lib.py b/m_lib/net/www/url_lib.py index 2ba2d4b..e0560ef 100644 --- a/m_lib/net/www/url_lib.py +++ b/m_lib/net/www/url_lib.py @@ -1,4 +1,4 @@ -"url_lib" +"""url_lib""" from urllib import FancyURLopener diff --git a/m_lib/net/www/util.py b/m_lib/net/www/util.py index 28b8f09..1d9d72a 100644 --- a/m_lib/net/www/util.py +++ b/m_lib/net/www/util.py @@ -1,4 +1,4 @@ -"Common WWW/CGI utilities" +"""Common WWW/CGI utilities""" import sys, os diff --git a/m_lib/net/www/xml.py b/m_lib/net/www/xml.py index 532afb6..19058fb 100644 --- a/m_lib/net/www/xml.py +++ b/m_lib/net/www/xml.py @@ -1,4 +1,4 @@ -"XML parsers" +"""XML parsers""" import re, xmllib diff --git a/m_lib/opdate.py b/m_lib/opdate.py index ac53c81..13a9d25 100755 --- a/m_lib/opdate.py +++ b/m_lib/opdate.py @@ -5,9 +5,6 @@ # opDate - date/time manipulation routines # Some ideas came from Turbo Professional/Object Professional (t/o)pDate.PAS # -# Written by Broytman, Nov 1997 - Dec 2003 -# Copyright (C) 1997-2003 PhiloSoft Design -# from string import * diff --git a/m_lib/opstring.py b/m_lib/opstring.py index 92d193b..e01a043 100755 --- a/m_lib/opstring.py +++ b/m_lib/opstring.py @@ -5,8 +5,6 @@ # opString - string/pathnames manipulation routines # Some ideas came from Turbo Professional/Object Professional (t/o)pString.PAS # -# Written by Broytman, Nov 1997. Copyright (C) 1997 PhiloSoft Design -# from string import * diff --git a/m_lib/pbar/__init__.py b/m_lib/pbar/__init__.py index 89dcb8f..5de5d2a 100644 --- a/m_lib/pbar/__init__.py +++ b/m_lib/pbar/__init__.py @@ -1 +1 @@ -"Broytman Flat ASCII Database for Python, Copyright (C) 1996-2001 PhiloSoft Design" +"""Broytman Progress Bar for Python""" diff --git a/m_lib/pbar/tty_pbar.py b/m_lib/pbar/tty_pbar.py index 3903d1f..a263c87 100644 --- a/m_lib/pbar/tty_pbar.py +++ b/m_lib/pbar/tty_pbar.py @@ -1,8 +1,4 @@ -""" - Progress bar (TTY version) - - Written by Broytman, Jan 1997 - Sep 2003. Copyright (C) 1997-2003 PhiloSoft Design -""" +"""Progress bar (TTY version)""" import sys, os diff --git a/m_lib/rus/__init__.py b/m_lib/rus/__init__.py index a4f13fa..adc1e46 100644 --- a/m_lib/rus/__init__.py +++ b/m_lib/rus/__init__.py @@ -1,4 +1,4 @@ -"Broytman WWW Library for Python, Copyright (C) 1996-2003 PhiloSoft Design" +"""Broytman Rus Library for Python""" __all__ = [ diff --git a/m_lib/rus/lat2rus.py b/m_lib/rus/lat2rus.py index abf8af3..4076fa2 100755 --- a/m_lib/rus/lat2rus.py +++ b/m_lib/rus/lat2rus.py @@ -3,7 +3,6 @@ # # Lat -> Rus translation -# Written by Broytman. Copyright (C) 2002 PhiloSoft Design # lat2koi_d = { diff --git a/m_lib/rus/rus2lat.py b/m_lib/rus/rus2lat.py index dda03da..b2677b2 100755 --- a/m_lib/rus/rus2lat.py +++ b/m_lib/rus/rus2lat.py @@ -3,7 +3,6 @@ # # Rus -> Lat transliteration (koi2lat and win2lat) -# Written by Broytman. Copyright (C) 1997-2002 PhiloSoft Design # koi2lat_d = { diff --git a/m_lib/tty_menu.py b/m_lib/tty_menu.py index 35ba43d..0c41c86 100755 --- a/m_lib/tty_menu.py +++ b/m_lib/tty_menu.py @@ -1,8 +1,5 @@ #! /usr/bin/env python -"""tty menus - - Written by Broytman, Mar 1998. Copyright (C) 1997 PhiloSoft Design. -""" +"""tty menus""" import string