Skip to content

Commit

Permalink
simplify py27 check
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jun 13, 2023
1 parent d3d6758 commit 54e7f9a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kolibri/plugins/device/kolibri_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ def any_ie11_users():
return UserSessionLog.objects.filter(device_info__contains="IE,11").count() > 0


def using_py27():
return sys.version_info.major == 2


@register_hook
class DeviceManagementAsset(WebpackBundleHook):
bundle_id = "app"
Expand All @@ -39,7 +35,7 @@ def plugin_data(self):
"isRemoteContent": OPTIONS["Deployment"]["REMOTE_CONTENT"],
"canRestart": bool(OPTIONS["Deployment"]["RESTART_HOOKS"]),
"deprecationWarnings": {
"py27": using_py27(),
"py27": sys.version_info.major == 2,
"ie11": any_ie11_users(),
},
}
Expand Down

0 comments on commit 54e7f9a

Please sign in to comment.