In [1]:
with open('temp/empty.txt', 'w'):
    pass

In [2]:
with open('temp/empty.txt', 'w'): pass