Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Jan 27, 2022
1 parent e2677b0 commit 6f9697a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
14 changes: 1 addition & 13 deletions console.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,9 @@
action = ''

while action not in ['-', '+', 'e', 'd']:

action = input('Encrypter (+|e) ou Décrypter (-|d) ? ')

else:

if action in ['-', 'd']:

code = decrypt(word, step)

else:

code = encrypt(word, step)



code = decrypt(word, step) if action in ['-', 'd'] else encrypt(word, step)
print('Le mot crypté est :', code)
print('-------------------------------------------------')
input("===Tapez sur n'importe quel touche pour sortir===")
3 changes: 1 addition & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def loop(self):

def addForm(self, **kw):
"""Create a new form"""
form = Form(self, **kw)
return form
return Form(self, **kw)


class Form(Frame):
Expand Down

0 comments on commit 6f9697a

Please sign in to comment.