Skip to content

Commit 7fe3256

Browse files
pyrcc: Default to Python 3
Generate all data as byte literals to work on Python 2 and 3. Task-number: PYSIDE-328 Change-Id: I8b574bab378459e54b72792c528154ae8135b937 Reviewed-by: Alex Blasche <[email protected]> Reviewed-by: Alexandru Croitor <[email protected]>
1 parent 3b0cf7c commit 7fe3256

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyrcc/main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This file is part of the PySide Tools project.
33
*
44
* Copyright (C) 1992-2005 Trolltech AS. All rights reserved.
5-
* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
5+
* Copyright (C) 2016 The Qt Company Ltd.
66
*
77
* Contact: PySide team <[email protected]>
88
*
@@ -37,7 +37,7 @@
3737
// Some static globals
3838
static QString initName;
3939
static bool verbose = false;
40-
static int py_version = 2;
40+
static int py_version = 3;
4141
static int compressLevel = CONSTANT_COMPRESSLEVEL_DEFAULT;
4242
static int compressThreshold = CONSTANT_COMPRESSTHRESHOLD_DEFAULT;
4343
static QString resourceRoot;
@@ -97,8 +97,8 @@ int showHelp(const char *argv0, const QString &error)
9797
fprintf(stderr, "Usage: %s [options] <inputs>\n\n"
9898
"Options:\n"
9999
" -o file Write output to file rather than stdout\n"
100-
" -py2 Generate code for any Python v2.x version (default)\n"
101-
" -py3 Generate code for any Python v3.x version\n"
100+
" -py2 Generate code for any Python v2.x version\n"
101+
" -py3 Generate code for any Python v3.x version (default)\n"
102102
" -name name Create an external initialization function with name\n"
103103
" -threshold level Threshold to consider compressing files\n"
104104
" -compress level Compress input files by level\n"

0 commit comments

Comments
 (0)