Skip to content

Commit 3dc5052

Browse files
BoboTiGyanglbme
authored andcommitted
Fix DeprecationWarning: invalid escape sequence (TheAlgorithms#679)
Signed-off-by: Mickaël Schoentgen <[email protected]>
1 parent 6128533 commit 3dc5052

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ciphers/affine_cipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import print_function
22
import sys, random, cryptomath_module as cryptoMath
33

4-
SYMBOLS = """ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
4+
SYMBOLS = r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
55

66
def main():
77
message = input('Enter message: ')

ciphers/rsa_cipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def main():
88
filename = 'encrypted_file.txt'
9-
response = input('Encrypte\Decrypt [e\d]: ')
9+
response = input(r'Encrypte\Decrypt [e\d]: ')
1010

1111
if response.lower().startswith('e'):
1212
mode = 'encrypt'

data_structures/binary tree/AVLtree.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def my_max(a,b):
6565

6666

6767
def leftrotation(node):
68-
'''
68+
r'''
6969
A B
7070
/ \ / \
7171
B C Bl A
@@ -101,7 +101,7 @@ def rightrotation(node):
101101
return ret
102102

103103
def rlrotation(node):
104-
'''
104+
r'''
105105
A A Br
106106
/ \ / \ / \
107107
B C RR Br C LR B A

data_structures/binary tree/binary_search_tree.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def InPreOrder(curr_node):
195195
return nodeList
196196

197197
def testBinarySearchTree():
198-
'''
198+
r'''
199199
Example
200200
8
201201
/ \
@@ -206,7 +206,7 @@ def testBinarySearchTree():
206206
4 7 13
207207
'''
208208

209-
'''
209+
r'''
210210
Example After Deletion
211211
7
212212
/ \

0 commit comments

Comments
 (0)