AstraLuma / xontrib-z

Tracks your most used directories, based on 'frecency'.
GNU General Public License v3.0
24 stars 16 forks source link

Deprecation warning with python3.12 #21

Open doronz88 opened 8 months ago

doronz88 commented 8 months ago

Causes the following errors:

/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/xontrib/z.py:188: DeprecationWarning: datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.now(datetime.UTC).
  now = datetime.datetime.utcnow()
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/xontrib/z.py:95: DeprecationWarning: datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.fromtimestamp(timestamp, datetime.UTC).
  t = datetime.datetime.utcfromtimestamp(int(t))
pannet1 commented 2 months ago

+1

yeap, deprecation warnings are night mare for xonsh because nvim would not load Codeium which i use for code completion