Skip to content

Commit a91f9b7

Browse files
committed
FIX: Calidad de código
1 parent 6a2358b commit a91f9b7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Su formato se basa en [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) y
3535

3636
### [1.0.5] - 2023-01-08
3737
#### Arreglado
38+
- Calidad de código
3839
- **README.md** más completo
3940

4041
### [1.0.4] - 2023-01-03

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
@brief: Sistema lector de los canales suscritos de YouTube dado un usuario concreto
1010
1111
@author: Veltys
12-
@Date: 2022-11-18
13-
@version: 1.0.3
12+
@Date: 2023-01-08
13+
@version: 1.0.4
1414
@usage: python3 main.py channelID [-f FILENAME]
1515
@note:
1616
'''
1717

1818

19-
DEBUG = False # Depuración
20-
19+
DEBUG = False # Depuración
20+
DEBUG_DATA_FILE = 'debug_data.pkl' # Archivo de depuración
2121

2222
from html import escape # Funcionalidad de codificación de entidades HTML
2323
import argparse # Funcionalidades del procesador de argumentos
@@ -188,14 +188,14 @@ def main(argv):
188188
responses = apiQuery(args.channel)
189189

190190
if DEBUG:
191-
f = open('debug_data.pkl', 'wb')
191+
f = open(DEBUG_DATA_FILE, 'wb')
192192

193193
pickle.dump(responses, f)
194194

195195
f.close()
196196

197197
else:
198-
f = open('debug_data.pkl', 'rb')
198+
f = open(DEBUG_DATA_FILE, 'rb')
199199

200200
responses = pickle.load(f)
201201

0 commit comments

Comments
 (0)