pythonbrasil / pythonbrasil/wiki

Migrar toda a base de código para Python 3.7

Open
#225 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
178
Forks
168
Avg merge
30m
Merged PRs (30d)
2

Description

Há algumas partes que ainda tem compatibilidade com Python2.
Python2.x será oficialmente descontinuado a partir de 01 de Janeiro de 2020, então não é necessário manter compatibilidade com Python legado.

No #223 eu removi o suporte a Python2 do arquivo empresas_generator.py, falta revisar e fazer o mesmo com todos outros arquivos Python do projeto.

Penso que também seja bom atualizar o shebang para #!/usr/bin/env python3 (onde isso fizer sentido). (Explicito é melhor que implícito.)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Python files in the repository, using the Python 2 support removal in empresas_generator.py and issue #223 as the reference point. Update remaining legacy compatibility and change shebangs to #!/usr/bin/env python3 where appropriate; done means the codebase no longer requires Python 2 support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.