mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-20 05:29:48 +00:00
Fix DeprecationWarning: invalid escape sequence (#679)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
This commit is contained in:
parent
6128533319
commit
3dc50529ca
@ -1,7 +1,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import sys, random, cryptomath_module as cryptoMath
|
import sys, random, cryptomath_module as cryptoMath
|
||||||
|
|
||||||
SYMBOLS = """ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
|
SYMBOLS = r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
message = input('Enter message: ')
|
message = input('Enter message: ')
|
||||||
|
@ -6,7 +6,7 @@ BYTE_SIZE = 256
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
filename = 'encrypted_file.txt'
|
filename = 'encrypted_file.txt'
|
||||||
response = input('Encrypte\Decrypt [e\d]: ')
|
response = input(r'Encrypte\Decrypt [e\d]: ')
|
||||||
|
|
||||||
if response.lower().startswith('e'):
|
if response.lower().startswith('e'):
|
||||||
mode = 'encrypt'
|
mode = 'encrypt'
|
||||||
|
@ -65,7 +65,7 @@ def my_max(a,b):
|
|||||||
|
|
||||||
|
|
||||||
def leftrotation(node):
|
def leftrotation(node):
|
||||||
'''
|
r'''
|
||||||
A B
|
A B
|
||||||
/ \ / \
|
/ \ / \
|
||||||
B C Bl A
|
B C Bl A
|
||||||
@ -101,7 +101,7 @@ def rightrotation(node):
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
def rlrotation(node):
|
def rlrotation(node):
|
||||||
'''
|
r'''
|
||||||
A A Br
|
A A Br
|
||||||
/ \ / \ / \
|
/ \ / \ / \
|
||||||
B C RR Br C LR B A
|
B C RR Br C LR B A
|
||||||
|
@ -195,7 +195,7 @@ def InPreOrder(curr_node):
|
|||||||
return nodeList
|
return nodeList
|
||||||
|
|
||||||
def testBinarySearchTree():
|
def testBinarySearchTree():
|
||||||
'''
|
r'''
|
||||||
Example
|
Example
|
||||||
8
|
8
|
||||||
/ \
|
/ \
|
||||||
@ -206,7 +206,7 @@ def testBinarySearchTree():
|
|||||||
4 7 13
|
4 7 13
|
||||||
'''
|
'''
|
||||||
|
|
||||||
'''
|
r'''
|
||||||
Example After Deletion
|
Example After Deletion
|
||||||
7
|
7
|
||||||
/ \
|
/ \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user