diff options
author | Thanasis Antoniou | 2019-07-23 12:30:39 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-07-23 12:50:44 +0300 |
commit | 1450a240a00a6a90f9c0f2cb837266a9d61d4281 (patch) | |
tree | ed35fef2a0d2dd3d395a0a58cfcfce2751b39f54 /devtools/create_bladerunner/subtitles/common/vqasTextResource.py | |
parent | 5b3a087e978eb785c6c72bae66d43153e3e412c8 (diff) | |
download | scummvm-rg350-1450a240a00a6a90f9c0f2cb837266a9d61d4281.tar.gz scummvm-rg350-1450a240a00a6a90f9c0f2cb837266a9d61d4281.tar.bz2 scummvm-rg350-1450a240a00a6a90f9c0f2cb837266a9d61d4281.zip |
DEVTOOLS: BLADERUNNER: Code quality improvements (Codacy issues)
Diffstat (limited to 'devtools/create_bladerunner/subtitles/common/vqasTextResource.py')
-rw-r--r-- | devtools/create_bladerunner/subtitles/common/vqasTextResource.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/devtools/create_bladerunner/subtitles/common/vqasTextResource.py b/devtools/create_bladerunner/subtitles/common/vqasTextResource.py index daa8577027..f9b909be7c 100644 --- a/devtools/create_bladerunner/subtitles/common/vqasTextResource.py +++ b/devtools/create_bladerunner/subtitles/common/vqasTextResource.py @@ -458,7 +458,7 @@ ALL_VQA_TEXT_RESOURCES_LISTS = [ # # # -class vqasTextResource: +class vqasTextResource(object): m_traceModeEnabled = True # traceModeEnabled is bool to enable more printed debug messages def __init__(self, traceModeEnabled = True): @@ -466,20 +466,26 @@ class vqasTextResource: return def printAllVqasTextResource(self): + if self.m_traceModeEnabled: + print "[Trace] printing all VQAs Text" for (vqaKeyStr, vqaTreList) in ALL_VQA_TEXT_RESOURCES_LISTS: - print "VQA prefix: %s" % (vqaKeyStr) + print "VQA prefix: %s" % (vqaKeyStr) for (startFrameTre, endFrameTre, textTre, timeStartTre, timeEndTre, byActorTre) in vqaTreList: print "%s\t%s\t%s\t%s\t%s\t%s" % (startFrameTre, endFrameTre, textTre, timeStartTre, timeEndTre, byActorTre) return def getVqaEntriesList(self, sVQASheetPrefix): + if self.m_traceModeEnabled: + print "[Trace] getVqaEntriesList()" for (vqaKeyStr, vqaTreList) in ALL_VQA_TEXT_RESOURCES_LISTS: if (vqaKeyStr == sVQASheetPrefix.upper()): return vqaTreList return None - +# +# +# if __name__ == '__main__': - # main() + # main() print "[Debug] Running %s as main module" % (my_module_name) traceModeEnabled = False vqaTRInstance = vqasTextResource(traceModeEnabled) |