File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = pnu_strfile
33description = create a random access file for storing strings
44long_description = file: README.md
55long_description_content_type = text/markdown
6- version = 1.0.2
6+ version = 1.0.3
77license = BSD 3-Clause License
88license_files = License
99author = Hubert Tournier
@@ -22,6 +22,15 @@ classifiers =
2222 Operating System :: Microsoft :: Windows
2323 Programming Language :: Python :: 3
2424 Programming Language :: Python :: 3.3
25+ Programming Language :: Python :: 3.4
26+ Programming Language :: Python :: 3.5
27+ Programming Language :: Python :: 3.6
28+ Programming Language :: Python :: 3.7
29+ Programming Language :: Python :: 3.8
30+ Programming Language :: Python :: 3.9
31+ Programming Language :: Python :: 3.10
32+ Topic :: Software Development :: Libraries
33+ Topic :: Software Development :: Libraries :: Python Modules
2534 Topic :: System
2635 Topic :: Utilities
2736
Original file line number Diff line number Diff line change 1313import sys
1414
1515# Version string used by the what(1) and ident(1) commands:
16- ID = "@(#) $Id: strfile, unstr - create a random access file for storing strings v1.0.2 (August 16 , 2021) by Hubert Tournier $"
16+ ID = "@(#) $Id: strfile, unstr - create a random access file for storing strings v1.0.3 (September 26 , 2021) by Hubert Tournier $"
1717
1818# Default parameters. Can be overcome by command line options
1919parameters = {
3636STR_COMMENTS = 0x8
3737
3838
39+ ################################################################################
40+ def initialize_debugging (program_name ):
41+ """Debugging set up"""
42+ console_log_format = program_name + ": %(levelname)s: %(message)s"
43+ logging .basicConfig (format = console_log_format , level = logging .DEBUG )
44+ logging .disable (logging .INFO )
45+
46+
3947################################################################################
4048def display_strfile_usage ():
4149 """Displays usage"""
@@ -475,10 +483,7 @@ def main():
475483 if program_name != "strfile" :
476484 parameters ["Unstr" ] = True
477485
478- console_log_format = program_name + ": %(levelname)s: %(message)s"
479- logging .basicConfig (format = console_log_format , level = logging .DEBUG )
480- logging .disable (logging .INFO )
481-
486+ initialize_debugging (program_name )
482487 process_environment_variables ()
483488 arguments = process_command_line ()
484489
You can’t perform that action at this time.
0 commit comments