1 parent 640db08 commit 577f4d6Copy full SHA for 577f4d6
1 file changed
goose/__init__.py
@@ -21,8 +21,6 @@
21
limitations under the License.
22
"""
23
import os
24
-import time
25
-import random
26
from goose.version import version_info, __version__
27
from goose.configuration import Configuration
28
from goose.crawler import CrawlCandidate
@@ -76,9 +74,7 @@ def initialize(self):
76
74
77
75
# test to write a dummy file to the directory
78
# to check is directory is writtable
79
- timestamp = time.time()
80
- file_name = 'test-%s-%s.txt' % (timestamp, random.randrange(0, 100000))
81
- path = os.path.join(self.config.local_storage_path, file_name)
+ path = os.path.join(self.config.local_storage_path, 'test.txt')
82
try:
83
f = open(path, 'w')
84
f.close()
0 commit comments