Fix DeprecationWarning: invalid escape sequence (#679)

Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
This commit is contained in:
Mickaël Schoentgen 2019-01-08 09:58:47 +01:00 committed by Libin Yang
parent 6128533319
commit 3dc50529ca
4 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
from __future__ import print_function
import sys, random, cryptomath_module as cryptoMath
SYMBOLS = """ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
SYMBOLS = r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
def main():
message = input('Enter message: ')

View File

@ -6,7 +6,7 @@ BYTE_SIZE = 256
def main():
filename = 'encrypted_file.txt'
response = input('Encrypte\Decrypt [e\d]: ')
response = input(r'Encrypte\Decrypt [e\d]: ')
if response.lower().startswith('e'):
mode = 'encrypt'

View File

@ -65,7 +65,7 @@ def my_max(a,b):
def leftrotation(node):
'''
r'''
A B
/ \ / \
B C Bl A
@ -101,7 +101,7 @@ def rightrotation(node):
return ret
def rlrotation(node):
'''
r'''
A A Br
/ \ / \ / \
B C RR Br C LR B A

View File

@ -195,7 +195,7 @@ def InPreOrder(curr_node):
return nodeList
def testBinarySearchTree():
'''
r'''
Example
8
/ \
@ -206,7 +206,7 @@ def testBinarySearchTree():
4 7 13
'''
'''
r'''
Example After Deletion
7
/ \