Просмотр исходного кода

Removing f-string from exportJSON in orthancDatabaseBrowser for python3.5 compatibility

Andrej 1 год назад
Родитель
Сommit
eb3806f45a
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      orthancDatabaseBrowser.py

+ 1 - 4
orthancDatabaseBrowser.py

@@ -14,10 +14,7 @@ def extractJSON(data):
       except UnicodeDecodeError:
          pass
 
-      if sys.version_info[1]<6:
-         print('Failed to decode with [{}]: {}'.format(x,data))
-      else:
-         print(f'Failed to decode with [{x}]: {data}')
+      print('Failed to decode with [{}]: {}'.format(x,data))
 
    return None