Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some bug with devicename in "conkyHD[1-4].py" #51

Open
EvgeniusDragon opened this issue Mar 7, 2014 · 2 comments
Open

Some bug with devicename in "conkyHD[1-4].py" #51

EvgeniusDragon opened this issue Mar 7, 2014 · 2 comments

Comments

@EvgeniusDragon
Copy link

The root path "/" not named to "Root"

BUT! When change this string:
if (device is "/"):
to
if(device == "/"):

the script work fine.

I dont know, maybe this bug work only me. (Debian 7.4, Python2 and Python3)
But this example work good:

$ >>> device = "/"
$ >>> if (device is "/"):
$ ... devicename="Root"
$ ...
$ >>> print (""+devicename+"")
$ Root

@android-808
Copy link
Collaborator

i do remember having siilar issues when i did some work resolving issues before. i think in this scenario the code should be patched to be == instead. is keyword should be used to test identity rather than equality iirc.

@android-808
Copy link
Collaborator

sorry to double post but it won't let me edit at the moment on phone. i'll try it with Arch when i get home. I can patch it if it fails here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants