tika-python
tika-python copied to clipboard
Use another augmented assignment statement
:eyes: Some source code analysis tools can help to find opportunities for improving software components. :thought_balloon: I propose to increase the usage of augmented assignment statements accordingly.
diff --git a/tika/tika.py b/tika/tika.py
index 3e19b6c..8c0983d 100755
--- a/tika/tika.py
+++ b/tika/tika.py
@@ -771,7 +771,7 @@ def getRemoteFile(urlOrPath, destPath):
return (urlOrPath, 'local')
else:
filename = toFilename(urlOrPath)
- destPath = destPath + '/' + filename
+ destPath += '/' + filename
log.info('Retrieving %s to %s.' % (urlOrPath, destPath))
try:
urlretrieve(urlOrPath, destPath)