python-printr 3.8__tar.gz → 4.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.1
2
2
  Name: python-printr
3
- Version: 3.8
3
+ Version: 4.0
4
4
  Summary: printr
5
5
  Home-page: https://github.com/xjxckk/python-printr/
6
6
  Download-URL: https://github.com/xjxckk/python-printr/archive/refs/tags/v0.1.tar.gz
@@ -10,7 +10,7 @@ class logger:
10
10
  if not log_filepath:
11
11
  log_filepath = f'{os.getcwd()}/{filename}.txt'
12
12
  self.log_filepath = log_filepath
13
- self.backup_log_filepath = log_filepath.replace('.txt', '_2_old.txt')
13
+ self.backup_log_filepath = log_filepath.replace('.txt', '_2nd_log.txt')
14
14
  self.max_lines = max_lines
15
15
  self.log_to_file = log_to_file
16
16
 
@@ -73,8 +73,8 @@ class logger:
73
73
  if number_of_lines > self.max_lines:
74
74
  self.logger.info('Resetting log file')
75
75
  self.log_file.close()
76
- sleep(1)
77
- os.replace(self.log_filepath, self.backup_log_filepath)
76
+ # sleep(10)
77
+ # os.replace(self.log_filepath, self.backup_log_filepath)
78
78
  log_file = logging.FileHandler(self.log_filepath, mode='w', encoding='utf-8')
79
79
  log_format = logging.Formatter(fmt=self.indent + '%(levelname)s - %(asctime)s.%(msecs)03d - Line %(lineno)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
80
80
  log_file.setFormatter(log_format)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-printr
3
- Version: 3.8
3
+ Version: 4.0
4
4
  Summary: printr
5
5
  Home-page: https://github.com/xjxckk/python-printr/
6
6
  Download-URL: https://github.com/xjxckk/python-printr/archive/refs/tags/v0.1.tar.gz
@@ -3,7 +3,7 @@ from setuptools import setup
3
3
  setup(
4
4
  name = 'python-printr',
5
5
  packages = ['printr'],
6
- version = '3.8',
6
+ version = '4.0',
7
7
  install_requires=['coloredlogs'],
8
8
  description = 'printr',
9
9
  url = 'https://github.com/xjxckk/python-printr/',
File without changes
File without changes
File without changes