PyCatFile 0.14.8__tar.gz → 0.14.12__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: PyCatFile
3
- Version: 0.14.8
3
+ Version: 0.14.12
4
4
  Summary: A tar like file format name catfile after unix cat command (concatenate files) .
5
5
  Home-page: https://github.com/GameMaker2k/PyCatFile
6
6
  Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyCatFile
3
- Version: 0.14.8
3
+ Version: 0.14.12
4
4
  Summary: A tar like file format name catfile after unix cat command (concatenate files) .
5
5
  Home-page: https://github.com/GameMaker2k/PyCatFile
6
6
  Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
@@ -14,7 +14,7 @@
14
14
  Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
15
15
  Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
16
16
 
17
- $FileInfo: pycatfile.py - Last Update: 11/22/2024 Ver. 0.14.8 RC 1 - Author: cooldude2k $
17
+ $FileInfo: pycatfile.py - Last Update: 11/23/2024 Ver. 0.14.12 RC 1 - Author: cooldude2k $
18
18
  '''
19
19
 
20
20
  from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes
@@ -240,23 +240,25 @@ if(__use_http_lib__ == "requests" and havehttpx and not haverequests):
240
240
  if((__use_http_lib__ == "httpx" or __use_http_lib__ == "requests") and not havehttpx and not haverequests):
241
241
  __use_http_lib__ = "urllib"
242
242
  if os.path.exists(__config_file__) and __use_ini_file__:
243
- # Create a ConfigParser object
244
243
  config = configparser.ConfigParser()
245
- # Read the configuration file
246
244
  config.read(__config_file__)
247
- # Accessing values from the config file
248
- __file_format_name__ = config['main']['name']
249
- __program_name__ = config['main']['proname']
250
- __file_format_lower__ = config['main']['lower']
251
- __file_format_magic__ = config['main']['magic'].encode("UTF-8").decode('unicode_escape')
252
- __file_format_len__ = int(config['main']['len'])
253
- __file_format_hex__ = config['main']['hex']
254
- __file_format_delimiter__ = config['main']['delimiter'].encode("UTF-8").decode('unicode_escape')
255
- __file_format_ver__ = config['main']['ver']
245
+ def decode_unicode_escape(value):
246
+ if sys.version_info[0] < 3: # Python 2
247
+ return value.decode('unicode_escape')
248
+ else: # Python 3
249
+ return bytes(value, 'utf-8').decode('unicode_escape')
250
+ __file_format_name__ = config.get('main', 'name')
251
+ __program_name__ = config.get('main', 'proname')
252
+ __file_format_lower__ = config.get('main', 'lower')
253
+ __file_format_magic__ = decode_unicode_escape(config.get('main', 'magic'))
254
+ __file_format_len__ = config.getint('main', 'len')
255
+ __file_format_hex__ = config.get('main', 'hex')
256
+ __file_format_delimiter__ = decode_unicode_escape(config.get('main', 'delimiter'))
257
+ __file_format_ver__ = config.get('main', 'ver')
256
258
  __use_new_style__ = config.getboolean('main', 'newstyle')
257
259
  __use_advanced_list__ = config.getboolean('main', 'advancedlist')
258
260
  __use_alt_inode__ = config.getboolean('main', 'altinode')
259
- __file_format_extension__ = config['main']['extension']
261
+ __file_format_extension__ = config.get('main', 'extension')
260
262
  else:
261
263
  if not __use_alt_format__:
262
264
  # Format Info by Kazuki Przyborowski
@@ -295,12 +297,12 @@ __file_format_dict__ = {'format_name': __file_format_name__, 'format_magic': __f
295
297
  'format_delimiter': __file_format_delimiter__, 'format_ver': __file_format_ver__, 'new_style': __use_new_style__, 'use_advanced_list': __use_advanced_list__, 'use_alt_inode': __use_alt_inode__}
296
298
  __project__ = __program_name__
297
299
  __project_url__ = "https://github.com/GameMaker2k/PyCatFile"
298
- __version_info__ = (0, 14, 8, "RC 1", 1)
299
- __version_date_info__ = (2024, 22, 17, "RC 1", 1)
300
+ __version_info__ = (0, 14, 12, "RC 1", 1)
301
+ __version_date_info__ = (2024, 23, 17, "RC 1", 1)
300
302
  __version_date__ = str(__version_date_info__[0]) + "." + str(
301
303
  __version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
302
304
  __revision__ = __version_info__[3]
303
- __revision_id__ = "$Id: 56e05e541e9319a27611bee3b55de8c59c7923cd $"
305
+ __revision_id__ = "$Id: 0a122e312a1e0c7ce7e2b9d29d20e6a16b52f9d4 $"
304
306
  if(__version_info__[4] is not None):
305
307
  __version_date_plusrc__ = __version_date__ + \
306
308
  "-" + str(__version_date_info__[4])
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes