Skip to content

Commit 0a3cfad

Browse files
authored
Update to v1.0.3
1 parent 08e2f05 commit 0a3cfad

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

setup.cfg

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = pnu_strfile
33
description = create a random access file for storing strings
44
long_description = file: README.md
55
long_description_content_type = text/markdown
6-
version = 1.0.2
6+
version = 1.0.3
77
license = BSD 3-Clause License
88
license_files = License
99
author = 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

src/strfile/main.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import 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
1919
parameters = {
@@ -36,6 +36,14 @@
3636
STR_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
################################################################################
4048
def 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

0 commit comments

Comments
 (0)