Skip to content

Commit cd6eae8

Browse files
committed
removing redundant file_name.strip()
1 parent 8b18222 commit cd6eae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backup_automater_services.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
for file_name in open(conffilename): # Walk through the configuration file
2727
fname = file_name.strip() # Strip out the blank lines from the configuration file
2828
if fname: # For the lines that are not blank
29-
sourcefile = os.path.join(sourcedir, file_name.strip()) # Get the name of the source files to backup
30-
destfile = os.path.join(destdir, file_name.strip()) # Get the name of the destination file names
29+
sourcefile = os.path.join(sourcedir, fname) # Get the name of the source files to backup
30+
destfile = os.path.join(destdir, fname) # Get the name of the destination file names
3131
shutil.copytree(sourcefile, destfile) # Copy the directories

0 commit comments

Comments
 (0)