PK!1V NN nonrepeat.pyimport re import os def nonrepeat_filename(filename, primary_suffix=None, separator='-', start=0): while os.path.exists(filename): stem, suffix = os.path.splitext(filename) if primary_suffix: if primary_suffix not in stem: stem += separator + primary_suffix filename = stem + suffix continue match_obj = re.search(r'(.*)(?>> from nonrepeat import nonrepeat >>> nonrepeat('foo', pool=['foo', 'foo0', 'foo1']) 'foo2' """ pool = set(pool) while name in pool: if primary_suffix: if primary_suffix not in name: name += separator + primary_suffix continue match_obj = re.search(r'(.*)(?Z Y7SkUuq]˛bظ+6 PK!HO nonrepeat-0.1.0.dist-info/RECORD}n0RZhʘ] *`*%S~'~^+S5O4\JAWu\3qcB>7T(8%C8 6#SLfzJŮ`~MqJvEfKzBvR.Y_9h(co-!XIhHFYP8t7y%QofxdBPK!1V NN nonrepeat.pyPK!HMWXxnonrepeat-0.1.0.dist-info/WHEELPK!H`v _" nonrepeat-0.1.0.dist-info/METADATAPK!HO ;nonrepeat-0.1.0.dist-info/RECORDPK%?