Skip to content

Commit

Permalink
proper close()
Browse files Browse the repository at this point in the history
  • Loading branch information
lversaw committed Apr 7, 2023
1 parent a0aa8a0 commit c90c483
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions usfm/removeDuplicateVerses.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import sys

# Globals
source_dir = r'C:\DCS\Hindi\hi_iev'
source_dir = r'C:\DCS\Oriya\GST.eph\50-EPH.usfm'
nChanged = 0
max_changes = 66
max_changes = 1
#filename_re = re.compile(r'intro\.md$')
filename_re = re.compile(r'.+\.usfm$')
yes_backup = True
Expand Down Expand Up @@ -86,10 +86,10 @@ def filterLines(path):
os.rename(path, bakpath)
output = io.open(path, "tw", buffering=1, encoding='utf-8', newline='\n')
output.writelines(outputlines)
output.close
output.close()
return changed
# sys.stdout.write("Converted " + shortname(path) + "\n")

def shortname(longpath):
shortname = longpath
if source_dir in longpath:
Expand Down

0 comments on commit c90c483

Please sign in to comment.