haltcase / glob

Pure Nim library for matching file paths against Unix style glob patterns.
https://glob.bolingen.me
MIT License
61 stars 5 forks source link

fix issue #21 ; fix warnings about future vs sugar #22

Closed timotheecour closed 6 years ago

timotheecour commented 6 years ago
haltcase commented 6 years ago

Thanks! I fixed the first one before seeing this PR (sorry). The second one will break Nim <= 0.18.0 though because it's only called sugar in Nim devel. We could do something like:

when (NimMajor, NimMinor, NimPatch) > (0, 18, 0):
  import sugar
else:
  import future

But it's just a warning/deprecation so not sure it's necessary quite yet.