Commits

Smith Dhumbumroong  committed 792b51d

Fix equal test condition.

  • Participants
  • Parent commits f933fe2
  • Tags 0.7.1

Comments (0)

Files changed (1)

File PyShutdownBox.py

             os.system(self.rc_shutdown)
         self.CloseProcesses(self.plist)
 
-        if self.restart_cmd is "dbus":
+        if self.restart_cmd == "dbus":
             self.pwm.Restart()
         else:
             os.system(self.restart_cmd)
             os.system(self.rc_shutdown)
         self.CloseProcesses(self.plist)
 
-        if self.shutdown_cmd is "dbus":
+        if self.shutdown_cmd == "dbus":
             self.pwm.Stop()
         else:
             os.system(self.shutdown_cmd)