valhallasw added a comment.

  I'm really confused by this. I'm also on Windows 10, yet my platform.version 
is:
  
    C:\Users\Merlijn van Deen\Documents\GitHub\pywikibot-core>python
    Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] 
on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import platform
    >>> platform.version()
    '6.2.9200'
  
  Secondly, the code that triggers this is
  
    if sys.platform == 'win32':
        import platform
        win_version = int(platform.version().split(".")[0])
        if win_version == 5:
            sub_dir = ["Application Data"]
        elif win_version in (6, 10):
            sub_dir = ["AppData", "Roaming"]
        else:
            raise WindowsError(u'Windows version %s not supported yet.'
                               % win_version)
  
  (source on github 
<https://github.com/wikimedia/pywikibot-core/blob/2.0/pywikibot/config2.py>)
  
  and I don't understand how `int(platform.version().split(".")[0])` could 
return `1` if platform.version() == `10.0.10586`...

TASK DETAIL
  https://phabricator.wikimedia.org/T135015

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw
Cc: valhallasw, Aklapper, Zppix, pywikibot-bugs-list, DarkShadowTNT, Mdupont, 
jayvdb



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to