Skip to content

Commit

Permalink
Use ==/!= to compare str, bytes, and int literals
Browse files Browse the repository at this point in the history
Identity is not the same thing as equality in Python.
  • Loading branch information
cclauss authored Aug 5, 2019
1 parent dc96d94 commit 875d370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataPrepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

Flags = parser.parse_args()

if Flags.summary_dir is "":
if Flags.summary_dir == "":
Flags.summary_dir = os.path.join(Flags.disk_path, "log/")
os.path.isdir(Flags.disk_path) or os.makedirs(Flags.disk_path)
os.path.isdir(Flags.summary_dir) or os.makedirs(Flags.summary_dir)
Expand Down

0 comments on commit 875d370

Please sign in to comment.