Skip to content

Commit

Permalink
Imports: python 3 compliant import is in use.
Browse files Browse the repository at this point in the history
Continuing from the previous commit, if winreg isn't found, fall back to _winreg.
  • Loading branch information
josephsl committed Jul 1, 2017
1 parent 77e2120 commit b57b263
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/globalPlugins/resourceMonitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
#Authors: Alex Hall, Joseph Lee, Beqa Gozalishvili, Tuukka Ojala
# Copyright 2013-2017, released under GPL.

import _winreg as winreg # Python 3 compatibility.
try:
import winreg #Python 3
except ImportError:
import _winreg as winreg # Python 2
from datetime import datetime
import sys
import os
Expand Down

0 comments on commit b57b263

Please sign in to comment.