Remove a few comments and Fixes #232

master
Desai, Kartikey H 2019-01-09 10:22:33 -05:00
parent 7883614d2f
commit 77b2e0e3e3
1 changed files with 0 additions and 4 deletions

View File

@ -1,7 +1,4 @@
"""Python STIX2 FileSystem Source/Sink"""
# Temporary while we address TODO statement
from __future__ import print_function
import errno
import io
import json
@ -544,7 +541,6 @@ class FileSystemSink(DataSink):
else:
stix_obj = v20.Bundle(stix_obj, allow_custom=self.allow_custom)
# TODO: Better handling of the overwriting case.
if os.path.isfile(file_path):
raise DataSourceError("Attempted to overwrite file (!) at: {}".format(file_path))
else: