Skip to content

Commit

Permalink
trying to support Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
oualib committed Oct 30, 2023
1 parent 6df56bf commit e338ee5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 8 deletions.
10 changes: 8 additions & 2 deletions vertica_highcharts/highcharts/highcharts.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, absolute_import
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')
from past.builtins import basestring

from jinja2 import Environment, PackageLoader
Expand Down
10 changes: 8 additions & 2 deletions vertica_highcharts/highmaps/highmap_helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# -*- coding: utf-8 -*-
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')
from past.builtins import basestring

from urllib.request import urlopen
Expand Down
10 changes: 8 additions & 2 deletions vertica_highcharts/highstock/highstock.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, absolute_import
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')

from jinja2 import Environment, PackageLoader

Expand Down
10 changes: 8 additions & 2 deletions vertica_highcharts/highstock/highstock_helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# -*- coding: utf-8 -*-
from future.standard_library import install_aliases
install_aliases()
try:
from future.standard_library import install_aliases

install_aliases()
except:
import warnings

warnings.warn('future library does not support Python 3.12 yet. The import is skipped.')
from past.builtins import basestring

from urllib.request import urlopen
Expand Down

0 comments on commit e338ee5

Please sign in to comment.