toolfor-debug 0.2.0.0__tar.gz → 0.2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolfor_debug
3
- Version: 0.2.0.0
3
+ Version: 0.2.1.0
4
4
  Summary: Debug Module
5
5
  Author-email: ZedKa450 <zedka.le.vrai.pro@gmail.com>
6
6
  License: GPL-3.0-only
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "toolfor_debug"
7
- version = "0.2.0.0"
7
+ version = "0.2.1.0"
8
8
  description = "Debug Module"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"
@@ -79,7 +79,7 @@ class Tools:
79
79
  @staticmethod
80
80
  def dprint(*args, **kwargs):
81
81
  global debug_mode, output_file
82
- if debug_mode == "p+" or debug_mode == "p" and output_file != None:
82
+ if debug_mode in ["p+", "p"] and output_file is not None:
83
83
  if output_file == "pythonconsole":
84
84
  print("DEBUG: ", *args, **kwargs)
85
85
 
@@ -93,17 +93,15 @@ class Tools:
93
93
  with open(output_file, "a") as f:
94
94
  if os.path.exists(output_file):
95
95
  print("DEBUG: ", *args, **kwargs, file=f)
96
- else:
97
- print("Output file doesn't exists, please create it or use pythonconsole or automatic as output")
98
96
  else:
99
97
  print("Debug mode is not active or output file is not set for dprint")
100
98
 
101
99
  @staticmethod
102
- def dinput(*args):
100
+ def dinput(arg):
103
101
  global debug_mode, output_file
104
- if debug_mode == "p+" or debug_mode == "i" and output_file != None:
102
+ if debug_mode in ["p+", "i"] and output_file is not None:
105
103
  if output_file == "pythonconsole":
106
- return input("DEBUG: ", *args)
104
+ return input("DEBUG: " + str(arg))
107
105
  else:
108
106
  print("Dinput do not support output by file, use pythonconsole as output to use dinput")
109
107
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolfor_debug
3
- Version: 0.2.0.0
3
+ Version: 0.2.1.0
4
4
  Summary: Debug Module
5
5
  Author-email: ZedKa450 <zedka.le.vrai.pro@gmail.com>
6
6
  License: GPL-3.0-only
File without changes