-Broytman Library for Python, Copyright (C) 1996-2013 PhiloSoft Design
+Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design
Author: Oleg Broytman <phd@phdru.name>
License: GPL
-"Broytman Library for Python, Copyright (C) 1996-2001 PhiloSoft Design"
+"""Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design"""
-"Broytman Clock Library for Python, Copyright (C) 1996-2001 PhiloSoft Design"
+"""Broytman Clocks for Python"""
#! /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
#! /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
#! /usr/bin/env python
-"""Get default encoding
-
- Written by Oleg Broytman. Copyright (C) 2007-2016 PhiloSoft Design.
-"""
+"""Get default encoding"""
__all__ = ['default_encoding']
-"Broytman Flat ASCII Database for Python, Copyright (C) 1996-2001 PhiloSoft Design"
+"""Broytman Flat ASCII Database for Python"""
"""
Flat ASCII Database.
This module implements a very simple database on the flat ASCII files.
-
- Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design
"""
"""
Flat ASCII Database to implement VERY simple config files.
-
- Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design
"""
"""
Flat ASCII Database with "must" keys
-
- Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design
"""
"""
Flat ASCII Database to load WIN.INI-like files.
-
- Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design
"""
#! /usr/bin/env python
-"""File logger
-
- Written by Broytman, Dec 1997. Copyright (C) 1997 PhiloSoft Design.
-"""
+"""File logger"""
from time import *
-"""Provide a (g)dbm-compatible interface to MetaKit.
-Author: Oleg Broytman <phd@phd.pp.ru>
-Copyright (C) 2001-2002 PhiloSoft Design
-License: Python"""
-
+"""(g)dbm-compatible interface to MetaKit"""
import sys
try:
-"""Provide a (g)dbm-compatible interface to ZODB.
-Author: Oleg Broytman <phd@phd.pp.ru>
-Copyright (C) 2001-2002 PhiloSoft Design
-License: Python"""
-
+"""(g)dbm-compatible interface to ZODB"""
import sys
try:
-"""Extended disk hashes package. It extends anydbm/whichdb with ZODB and
-MetaKit-based hashes.
-Author: Oleg Broytman <phd@phd.pp.ru>
-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"]
-"""Compressed shelves.
-Author: Oleg Broytman <phd@phd.pp.ru>
-Copyright (C) 2001-2003 PhiloSoft Design
-License: Python"""
-
+"""Compressed shelves"""
from shelve import DbfilenameShelf
from zlib import compress, decompress
-"Broytman WWW Library for Python, Copyright (C) 1996-2003 PhiloSoft Design"
+"""Broytman WWW Library for Python"""
__all__ = [
-"Lazy dictionaries calculate self content upon first access"
+"""Lazy dictionaries calculate self content upon first access"""
class LazyDict:
"Abstract parent of all lazy dictionaries"
-"Lazy imoport - import the module upon first request"
+"""Lazy imoport - import the module upon first request"""
try:
#
# useful function(s) for manipulating paths
#
-# Author: Oleg Broytman <phd@phd.pp.ru>
-# Copyright (C) 2002 PhiloSoft Design
-#
_homedir = None
#! /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).
"""
#
# useful function(s) for module crypt
#
-# Author: Oleg Broytman <phd@phd.pp.ru>
-# Copyright (C) 1998-1999 PhiloSoft Design
-#
import random, crypt
#! /usr/bin/env python
"""User wrapper for md5 builtin object"""
-__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 1997-2012 PhiloSoft Design"
-__license__ = "GNU GPL"
-
__all__ = ['md5wrapper']
import sys
-"Broytman Net Library for Python, Copyright (C) 1996-2003 PhiloSoft Design"
+"""Broytman Net Library for Python"""
__all__ = [
-"Broytman WWW Library for Python, Copyright (C) 1996-2003 PhiloSoft Design"
+"""Broytman FTP Library for Python"""
__all__ = [
#! /usr/bin/env python
"""Parse output of FTP LIST command.
Pure python implementation.
- Author: Oleg Broytman <phd@phd.pp.ru>.
- 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
"""
-__version__ = "1.1.2"
-__author__ = "Oleg Broytman <phd@phd.pp.ru>"
-__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:
-"SMS Transports by phd, corvin, r_sabitov"
+"""SMS Transports by phd, corvin, r_sabitov"""
# -*- coding: koi8-r -*-
-"Broytman WWW Library for Python, Copyright (C) 1996-2002 PhiloSoft Design"
+"""Broytman WWW Library for Python"""
__all__ = [
-"DTML utilities"
+"""DTML utilities"""
class standard_html: # Base class for using with ZTemplates
def __init__(self, title):
-"HTML parsers"
+"""HTML parsers"""
from HTMLParser import HTMLParser as _HTMLParser
-"Server Push"
+"""Server Push"""
import sys, mimetools
-"url_lib"
+"""url_lib"""
from urllib import FancyURLopener
-"Common WWW/CGI utilities"
+"""Common WWW/CGI utilities"""
import sys, os
-"XML parsers"
+"""XML parsers"""
import re, xmllib
# 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 *
# 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 *
-"Broytman Flat ASCII Database for Python, Copyright (C) 1996-2001 PhiloSoft Design"
+"""Broytman Progress Bar for Python"""
-"""
- Progress bar (TTY version)
-
- Written by Broytman, Jan 1997 - Sep 2003. Copyright (C) 1997-2003 PhiloSoft Design
-"""
+"""Progress bar (TTY version)"""
import sys, os
-"Broytman WWW Library for Python, Copyright (C) 1996-2003 PhiloSoft Design"
+"""Broytman Rus Library for Python"""
__all__ = [
#
# Lat -> Rus translation
-# Written by Broytman. Copyright (C) 2002 PhiloSoft Design
#
lat2koi_d = {
#
# Rus -> Lat transliteration (koi2lat and win2lat)
-# Written by Broytman. Copyright (C) 1997-2002 PhiloSoft Design
#
koi2lat_d = {
#! /usr/bin/env python
-"""tty menus
-
- Written by Broytman, Mar 1998. Copyright (C) 1997 PhiloSoft Design.
-"""
+"""tty menus"""
import string