Before

…lines 1–12 unchanged (12 lines)
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15try:
16 from PySide6.QtCore import Qt, QSize, QPoint, QThread, QTranslator, QCoreApplication, QLocale
17 from PySide6.QtWidgets import QLineEdit, QInputDialog
18 from PySide6.QtGui import QIcon
19except:
20 from PyQt5.QtCore import Qt, QSize, QPoint, QThread, QTranslator, QCoreApplication, QLocale
21 from PyQt5.QtWidgets import QLineEdit, QInputDialog
22 from PyQt5.QtGui import QIcon
23
24
25from persepolis.constants import OS
…lines 26–261 unchanged (236 lines)

After

…lines 1–12 unchanged (12 lines)
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15try:
16 from PySide6.QtCore import Qt, QSize, QPoint, QThread, QTranslator, QCoreApplication, QLocale
17 from PySide6.QtWidgets import QLineEdit, QInputDialog
18 from PySide6.QtGui import QIcon
19except ImportError:
20 from PyQt5.QtCore import Qt, QSize, QPoint, QThread, QTranslator, QCoreApplication, QLocale
21 from PyQt5.QtWidgets import QLineEdit, QInputDialog
22 from PyQt5.QtGui import QIcon
23
24
25from persepolis.constants import OS
…lines 26–261 unchanged (236 lines)

Before

module
comment "# -*- coding: utf-8 -*-"
comment "# This program is free software: you can redistribute it "...
comment "# it under the terms of the GNU General Public License as"...
comment "# the Free Software Foundation, either version 3 of the L"...
comment "# (at your option) any later version."
comment "#"
comment "# This program is distributed in the hope that it will be"...
comment "# but WITHOUT ANY WARRANTY; without even the implied warr"...
comment "# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S"...
comment "# GNU General Public License for more details."
comment "#"
comment "# You should have received a copy of the GNU General Publ"...
comment "# along with this program. If not, see <http://www.gnu.o"...
try_statement
try "try"
: ":"
block (+49 nodes collapsed)
except_clause
except "except"
: ":"
block (+49 nodes collapsed)
import_from_statement
from "from"
dotted_name
identifier "persepolis"
. "."
identifier "constants"
import "import"
dotted_name
identifier "OS"
import_from_statement
from "from"
dotted_name
identifier "persepolis"
. "."
identifier "gui"
. "."
identifier "video_finder_progress_ui"
import "import"
dotted_name
identifier "VideoFinderProgressWindow_Ui"
import_from_statement
from "from"
dotted_name
identifier "persepolis"
. "."
identifier "scripts"
. "."
identifier "shutdown"
import "import"
dotted_name
identifier "shutDown"
import_statement
import "import"
dotted_name
identifier "subprocess"
import_statement
import "import"
dotted_name
identifier "platform"
expression_statement
assignment
identifier "os_type"
= "="
call
attribute
identifier "platform"
. "."
identifier "system"
argument_list
( "("
) ")"
class_definition (+96 nodes collapsed)
class_definition (+1788 nodes collapsed)

After

module
comment "# -*- coding: utf-8 -*-"
comment "# This program is free software: you can redistribute it "...
comment "# it under the terms of the GNU General Public License as"...
comment "# the Free Software Foundation, either version 3 of the L"...
comment "# (at your option) any later version."
comment "#"
comment "# This program is distributed in the hope that it will be"...
comment "# but WITHOUT ANY WARRANTY; without even the implied warr"...
comment "# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S"...
comment "# GNU General Public License for more details."
comment "#"
comment "# You should have received a copy of the GNU General Publ"...
comment "# along with this program. If not, see <http://www.gnu.o"...
try_statement
try "try"
: ":"
block (+49 nodes collapsed)
except_clause
except "except"
identifier "ImportError"
: ":"
block (+49 nodes collapsed)
import_from_statement
from "from"
dotted_name
identifier "persepolis"
. "."
identifier "constants"
import "import"
dotted_name
identifier "OS"
import_from_statement
from "from"
dotted_name
identifier "persepolis"
. "."
identifier "gui"
. "."
identifier "video_finder_progress_ui"
import "import"
dotted_name
identifier "VideoFinderProgressWindow_Ui"
import_from_statement
from "from"
dotted_name
identifier "persepolis"
. "."
identifier "scripts"
. "."
identifier "shutdown"
import "import"
dotted_name
identifier "shutDown"
import_statement
import "import"
dotted_name
identifier "subprocess"
import_statement
import "import"
dotted_name
identifier "platform"
expression_statement
assignment
identifier "os_type"
= "="
call
attribute
identifier "platform"
. "."
identifier "system"
argument_list
( "("
) ")"
class_definition (+96 nodes collapsed)
class_definition (+1788 nodes collapsed)