Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b82e57c

Browse files
Merge pull request avinashkranjan#946 from avinashkranjan/deepsource-fix-a80a6306
Remove blank lines after docstring
2 parents 5fb3ea1 + c9c9451 commit b82e57c

File tree

9 files changed

+0
-20
lines changed

9 files changed

+0
-20
lines changed

‎Auto_Backup/Auto_Backup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def size_if_newer(source, target):
5353
Returns: The Size difference
5454
5555
"""
56-
5756
src_stat = os.stat(source)
5857
try:
5958
target_ts = os.stat(target).st_mtime
@@ -110,7 +109,6 @@ def transfer_file(source, target, compress):
110109
target: Target for ZIP file
111110
compress: The compression threshold
112111
"""
113-
114112
try:
115113
if compress:
116114
with gzip.open(target + '.gz', 'wb') as target_fid:

‎Bubble-Sort-Visualization/bubble_sort.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def bubble_sort(data, speed):
8585
data => array to be sorted
8686
speed => speed of the simulation
8787
"""
88-
8988
for i in range(len(data)-1):
9089
for j in range(len(data) - i - 1):
9190
if data[j] > data[j+1]:

‎Facial-Expression-Recognition/retrain.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ def add_input_distortions(flip_left_right, random_crop, random_scale,
684684
Returns:
685685
The jpeg input layer and the distorted result tensor.
686686
"""
687-
688687
jpeg_data = tf.placeholder(tf.string, name='DistortJPGInput')
689688
decoded_image = tf.image.decode_jpeg(jpeg_data, channels=input_depth)
690689
decoded_image_as_float = tf.cast(decoded_image, dtype=tf.float32)

‎Image_Background_Subtractor/BG_Subtractor.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def draw_rectangle(event, x, y, flags, params):
2727
any event is happened on the image that is clicking any button on
2828
mouse or keyboard.
2929
"""
30-
3130
global ix, iy, drawn, rectangle
3231
if event == cv2.EVENT_LBUTTONDOWN:
3332
# When you click DOWN with left mouse button
@@ -58,8 +57,6 @@ def background_sub(image):
5857
:param image: Image on which Background subtraction is to be performed.
5958
:return:
6059
"""
61-
62-
# To check if ROI has been selected or not
6360
global drawn
6461

6562
# This names the window so we can reference it

‎PDF-Tools/main.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
def merge_pdfs():
66
''' Merge multiple PDF's into one combined PDF '''
7-
87
input_paths = input(r"Enter comma separated list of paths to the PDFs ")
98
paths = input_paths.split(',')
109
pdf_file_writer = PdfFileWriter()
@@ -22,7 +21,6 @@ def merge_pdfs():
2221

2322
def split_pdfs():
2423
'''Split PDF to multiple PDF's of 1 Page each'''
25-
2624
input_pdf = input(r"Enter I/P PDF path ")
2725
pdf = PdfFileReader(input_pdf)
2826
for page in range(pdf.getNumPages()):
@@ -38,7 +36,6 @@ def split_pdfs():
3836
def add_watermark():
3937
''' Adds watermark to given PDF.
4038
Note: The watermark PDF should be a image with transparent background '''
41-
4239
input_pdf = input(r"Enter I/P PDF path ")
4340
watermark = input(r"Enter watermark PDF path ")
4441
watermark_obj = PdfFileReader(watermark)
@@ -59,7 +56,6 @@ def add_watermark():
5956

6057
def add_encryption():
6158
''' Encrypts the given PDF with the provided password '''
62-
6359
input_pdf = input(r"Enter I/P PDF path ")
6460
password = input(r"Enter password ")
6561
pdf_file_writer = PdfFileWriter()
@@ -76,7 +72,6 @@ def add_encryption():
7672

7773
def rotate_pages():
7874
'''Rotate the given PDF left or right by 90 degrees.'''
79-
8075
input_pdf = input(r"Enter I/P PDF path ")
8176
pdf_file_writer = PdfFileWriter()
8277
pdf_file_reader = PdfFileReader(input_pdf)
@@ -169,9 +164,6 @@ def reorder_pages():
169164

170165
def menu():
171166
'''Menu for the various functionalities offered'''
172-
173-
# Change Current working directory to where the script is located.
174-
# This is done to enable use of relative paths from base folder.
175167
abspath = os.path.abspath(__file__)
176168
dname = os.path.dirname(abspath)
177169
os.chdir(dname)

‎Rearrange-PDF/ReArrange.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def input_and_parse(n):
2020
Returns:
2121
dic :A parsed dictionary.
2222
"""
23-
2423
print(
2524
"enter the current page and the page you want it to be on seperate values by a comma ',' \n"
2625
)

‎Text-Extract-Images/text_extract.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ def extract():
1111
Function for extracting text from images.
1212
Additional it saves the text extracted as a txt file.
1313
"""
14-
15-
# Enter the name of folder which contains img files
1614
image_location = input("Enter the Folder name containing Images: ")
1715
image_path = os.path.join(current_location, image_location)
1816

‎Tictactoe-Using-Minmax/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def playerMove():
6969
'''
7070
Take the input from user and validate user's input
7171
'''
72-
7372
run = True
7473
while run:
7574
try:

‎Traffic-Sign-Detection/traffic_sign_detection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def build(width, height, depth, classes):
187187
"""
188188
Initialize the model and its dimension
189189
"""
190-
191190
model = keras.Sequential()
192191
inputShape = (height, width, depth)
193192
chanDim = -1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /