Comments (1)
Something doesn't seem to add up. The exception mentions gencache.py:64
, not gencache.py:771-776
. Line 64 doesn't have mixed indentation. It also seems like usage
method could only be called from executing the module anyway, not importing it. Tabs in strings is fine anyway.
I was not able to replicate, even with this simplified scenario:
import sys
print(sys.version)
print(sys.platform)
def usage():
usageString = """\
Usage: gencache [-q] [-d] [-r]
-q - Quiet
-d - Dump the cache (typelibrary description and filename).
-r - Rebuild the cache dictionary from the existing .py files
"""
print(usageString)
usage()
3.8.5 (default, Jul 20 2020, 23:11:29)
[GCC 9.3.0]
linux
Usage: gencache [-q] [-d] [-r]
-q - Quiet
-d - Dump the cache (typelibrary description and filename).
-r - Rebuild the cache dictionary from the existing .py files
I still think it would be better to not mix indent in strings out of principle and consistency (and this isn't caught by black because it's in a string obviously). So I opened #2167
from pywin32.
Related Issues (20)
- Pywin32 generated msg with html content opens in outlook as plain text
- Inquiry about the Availability of PrintWindow Function HOT 1
- Cannot install pywin32! HOT 4
- Cannot install pywin32 using poetry on Jenkins. What is an alternate lib I can use? HOT 2
- feature request: to access _dialogs attribute from win32rcparser.RCParser HOT 2
- pythonservice.exe can't be updated if a python service is already running HOT 2
- Feature Request: Add Python API for PrintWindow Function HOT 1
- pywin32print printer info levels: Expose more PRINTER_INFO_* constants HOT 1
- images
- Random `testFileTimes` test failure in `test_win32file.py` HOT 2
- pywin32_postinstall wrongly identifies a debug build HOT 1
- Running `setup.py` as a script and its use as a CLI tool are deprecated
- Error processing SyntaxError exception from a Python Script HOT 1
- unable to compile pywin32 with python3.13 HOT 2
- pywintypes.error: (5, 'RegOpenKeyEx', 'Access is denied.') when running service with debug parameter and no elevation
- Pywin32gui doesn't install HOT 2
- Pythonwin interactive window now gets tracebacks with python3.12, probably 3.11 too... HOT 2
- Unable to set value in in connection to application HOT 1
- RuntimeError: MFC redist DLLs not found like (looking for mfc140u.dll) HOT 2
- Can we fetch the event of PrintService HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywin32.