diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/appveyor/build_glpk.py b/appveyor/build_glpk.py index <HASH>..<HASH> 100644 --- a/appveyor/build_glpk.py +++ b/appveyor/build_glpk.py @@ -11,8 +11,8 @@ except ImportError: # python 3 import urllib.request as urllib2 # these need to be set to the latest glpk version -glpk_version = "4.59" -glpk_md5...
bump appveyor glpk to <I>
py
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads.py b/examples/hlapi/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads.py index <HASH>..<HASH> 100644 --- a/examples/hlapi/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads.py +++ b/examples/hlapi/asyn...
old python compatibility fix to kwargs followed varargs
py
diff --git a/hitch/key.py b/hitch/key.py index <HASH>..<HASH> 100644 --- a/hitch/key.py +++ b/hitch/key.py @@ -272,6 +272,15 @@ def hvenvup(package, directory): pip("install", DIR.project.joinpath(directory).abspath()).run() +def rerun(version="3.5.0"): + """ + Rerun last example code block with specifie...
REFACTOR : Added a way to rerun example code without stdout/stderr redirected so IPython can be used.
py
diff --git a/zipline/__init__.py b/zipline/__init__.py index <HASH>..<HASH> 100644 --- a/zipline/__init__.py +++ b/zipline/__init__.py @@ -34,7 +34,7 @@ from . import api try: ip = get_ipython() # flake8: noqa ip.register_magic_function(utils.parse_cell_magic, "line_cell", "zipline") -except: +except NameEr...
BUG: Remove Pokemon exception handling. This was masking real errors that were occurring during registration of cell magic.
py
diff --git a/fs/ftpfs.py b/fs/ftpfs.py index <HASH>..<HASH> 100644 --- a/fs/ftpfs.py +++ b/fs/ftpfs.py @@ -378,6 +378,12 @@ class FTPFS(FS): >>> ftp_fs = FTPFS("test.rebex.net", user="demo", passwd="password") >>> ftp_fs = fs.open_fs('ftp://demo:password@test.rebex.net') + Connecting ...
Illustrate how to use a proxy server in `FTPFS`
py
diff --git a/tests/test_preconf.py b/tests/test_preconf.py index <HASH>..<HASH> 100644 --- a/tests/test_preconf.py +++ b/tests/test_preconf.py @@ -101,7 +101,7 @@ def everythings( ) ) dts = datetimes( - min_value=datetime(1904, 1, 1), + min_value=datetime(1970, 1, 1), max_value...
fix test failure on Windows On Windows, datetime.fromtimestamp only seems to support positive values
py
diff --git a/hearthstone/cardxml.py b/hearthstone/cardxml.py index <HASH>..<HASH> 100644 --- a/hearthstone/cardxml.py +++ b/hearthstone/cardxml.py @@ -151,10 +151,9 @@ class CardXML(object): for tag in STRING_TAGS: value = self.strings[tag] if value: - ElementTree.SubElement( - ret, "Tag", enumID=str(...
cardxml: Write string tag contents as text rather than attribute
py
diff --git a/tests/test_translate.py b/tests/test_translate.py index <HASH>..<HASH> 100644 --- a/tests/test_translate.py +++ b/tests/test_translate.py @@ -85,7 +85,7 @@ class TestTranslator(unittest.TestCase): def test_translate_text(self): text = "This is a sentence." translated = self.translato...
Fixed failing test by correcting translated Spanish result. Now matches what Google Translate API is providing for the given input.
py
diff --git a/metno/__init__.py b/metno/__init__.py index <HASH>..<HASH> 100644 --- a/metno/__init__.py +++ b/metno/__init__.py @@ -66,6 +66,7 @@ CONDITIONS.update(_VARIATIONS) del _VARIATIONS DEFAULT_API_URL = "https://api.met.no/weatherapi/locationforecast/2.0/complete" +TIMEOUT = 30 _LOGGER = logging.getLogger...
increase timeout (#<I>)
py
diff --git a/rebulk/__version__.py b/rebulk/__version__.py index <HASH>..<HASH> 100644 --- a/rebulk/__version__.py +++ b/rebulk/__version__.py @@ -4,4 +4,4 @@ Version module """ # pragma: no cover -__version__ = '0.7.1.dev0' +__version__ = '0.7.1'
Preparing release <I>
py
diff --git a/examples/get_secure_user_falco_rules.py b/examples/get_secure_user_falco_rules.py index <HASH>..<HASH> 100755 --- a/examples/get_secure_user_falco_rules.py +++ b/examples/get_secure_user_falco_rules.py @@ -21,7 +21,7 @@ sdc_token = sys.argv[1] # # Instantiate the SDC client # -sdclient = SdSecureClient(...
Use normal, not staging, environment. Initialize the client against our normal secure host, not our staging host.
py
diff --git a/subscriptions/tasks.py b/subscriptions/tasks.py index <HASH>..<HASH> 100644 --- a/subscriptions/tasks.py +++ b/subscriptions/tasks.py @@ -209,7 +209,7 @@ class SendNextMessage(Task): elif (subscription.process_status == 2 or subscription.completed is True): ...
Fix schedule_disable async call
py
diff --git a/cub/models.py b/cub/models.py index <HASH>..<HASH> 100644 --- a/cub/models.py +++ b/cub/models.py @@ -87,6 +87,8 @@ class CubObject(object): return '%s/%s' % (self.class_url(), self.id) def load_from(self, dikt): + if dikt is None: + return self for k, v in dikt.i...
properly parse empty response from api
py
diff --git a/smartmin/views.py b/smartmin/views.py index <HASH>..<HASH> 100644 --- a/smartmin/views.py +++ b/smartmin/views.py @@ -711,9 +711,18 @@ class SmartListView(SmartView, ListView): """ # is this a select2 format response? if self.request.REQUEST.get('_format', 'html') == 'select2': -...
Allow models to override select2 format
py
diff --git a/lice/core.py b/lice/core.py index <HASH>..<HASH> 100644 --- a/lice/core.py +++ b/lice/core.py @@ -71,6 +71,7 @@ LANGS = { "scm": "lisp", "sh": "unix", "txt": "text", + "rs": "rust", } LANG_CMT = { @@ -89,6 +90,7 @@ LANG_CMT = { "ruby": [u'=begin', u'', u'=end'], "text": [u''...
Add rust programming language (#<I>)
py
diff --git a/orb/core/model.py b/orb/core/model.py index <HASH>..<HASH> 100644 --- a/orb/core/model.py +++ b/orb/core/model.py @@ -142,7 +142,7 @@ class Model(object): yield column.name(), output else: - yield column.field(), value + ...
* restoring data from the column vs. returning the raw data, this will allow per-context data manipulation of data
py
diff --git a/mbdata/replication.py b/mbdata/replication.py index <HASH>..<HASH> 100644 --- a/mbdata/replication.py +++ b/mbdata/replication.py @@ -245,7 +245,7 @@ def load_tar(filename, db, config, ignored_schemas, ignored_tables): logger.info("Skipping %s (table %s already contains data)", name, fulltable...
cursor copy updated to work with psycopg <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,6 @@ tests_require = [ 'pytest-django>=3.2.1', ] + rest_framework_require -django_version = 'Django>=1.8.0,<2' if sys.version_info[0] < 3 else 'Django>=1.8.0' setup( name='graphene-django', version...
Fixed non-deterministic setup.py. Related issue #<I> This commit is trying to fix <URL>
py
diff --git a/python/mxnet/gluon/block.py b/python/mxnet/gluon/block.py index <HASH>..<HASH> 100644 --- a/python/mxnet/gluon/block.py +++ b/python/mxnet/gluon/block.py @@ -1175,7 +1175,7 @@ class HybridBlock(Block): out = [out] return _regroup(out, self._out_format) - def optimize_for(self, x,...
change partitioning default to False for hybridize and optimize_for (#<I>)
py
diff --git a/tests/unit/config_test.py b/tests/unit/config_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/config_test.py +++ b/tests/unit/config_test.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- - -# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2012-20...
Remove extraneous UTF8 coding line
py
diff --git a/phy/cluster/manual/tests/test_session.py b/phy/cluster/manual/tests/test_session.py index <HASH>..<HASH> 100644 --- a/phy/cluster/manual/tests/test_session.py +++ b/phy/cluster/manual/tests/test_session.py @@ -320,3 +320,22 @@ def test_session_clustering(): # clusters = np.unique(spike_clusters[sp...
History tests with cluster store and features masks.
py
diff --git a/django_x509/tests/test_cert.py b/django_x509/tests/test_cert.py index <HASH>..<HASH> 100644 --- a/django_x509/tests/test_cert.py +++ b/django_x509/tests/test_cert.py @@ -15,7 +15,7 @@ class TestCert(TestCase): tests for Cert model """ def _create_ca(self): - ca = Ca(name='newcert', + ...
[cleanup] Name of test CA is now 'Test CA'
py
diff --git a/oscrypto/trust_list.py b/oscrypto/trust_list.py index <HASH>..<HASH> 100644 --- a/oscrypto/trust_list.py +++ b/oscrypto/trust_list.py @@ -120,9 +120,18 @@ def _cached_path_needs_update(ca_path, cache_length): """ exists = os.path.exists(ca_path) - is_old = exists and os.stat(ca_path).st_mtim...
Ensure system CA path is not an empty file
py
diff --git a/wiki/update-wiki.py b/wiki/update-wiki.py index <HASH>..<HASH> 100644 --- a/wiki/update-wiki.py +++ b/wiki/update-wiki.py @@ -690,7 +690,7 @@ class MarkdownHelpFormatter(argparse.ArgumentDefaultsHelpFormatter): # Sub commands, format them with links if action.nargs is None: ...
Fixed regex for detecting rez sub-commands
py
diff --git a/malcolm/modules/pmac/parts/pmactrajectorypart.py b/malcolm/modules/pmac/parts/pmactrajectorypart.py index <HASH>..<HASH> 100644 --- a/malcolm/modules/pmac/parts/pmactrajectorypart.py +++ b/malcolm/modules/pmac/parts/pmactrajectorypart.py @@ -3,7 +3,14 @@ from typing import Union import numpy as np from a...
PmacTrajectoryPart: update timeout for pointsScanned to DEFAULT_TIMEOUT
py
diff --git a/avatar/templatetags/avatar_tags.py b/avatar/templatetags/avatar_tags.py index <HASH>..<HASH> 100644 --- a/avatar/templatetags/avatar_tags.py +++ b/avatar/templatetags/avatar_tags.py @@ -82,13 +82,13 @@ def primary_avatar_object(parser, token): class UsersAvatarObjectNode(template.Node): def __init__(...
small fix again, now it works to use any type of cropping/scaling with avatars in templates
py
diff --git a/napalm_yang/translator.py b/napalm_yang/translator.py index <HASH>..<HASH> 100644 --- a/napalm_yang/translator.py +++ b/napalm_yang/translator.py @@ -1,6 +1,7 @@ from napalm_yang import helpers from napalm_yang.parsers import get_parser +from copy import copy import logging logger = logging.getLogg...
restore previous extra_vars when leaving current tree branch
py
diff --git a/shinken/misc/regenerator.py b/shinken/misc/regenerator.py index <HASH>..<HASH> 100755 --- a/shinken/misc/regenerator.py +++ b/shinken/misc/regenerator.py @@ -212,6 +212,14 @@ class Regenerator(object): new_members.append(h) hg.members = new_members + # We need to ...
Fix : Reversed_list iconsitent state when merging host/service group
py
diff --git a/anyconfig/backend/shellvars.py b/anyconfig/backend/shellvars.py index <HASH>..<HASH> 100644 --- a/anyconfig/backend/shellvars.py +++ b/anyconfig/backend/shellvars.py @@ -108,7 +108,6 @@ class Parser(anyconfig.backend.base.FromStreamLoader, """ _type = "shellvars" _ordered = True - _dict_o...
fix: [shellvars] remove the member _dict_options 'container' which conflicts with container keyword argument and 'ac_dict' alternates it
py
diff --git a/nanoplot/NanoPlot.py b/nanoplot/NanoPlot.py index <HASH>..<HASH> 100755 --- a/nanoplot/NanoPlot.py +++ b/nanoplot/NanoPlot.py @@ -69,6 +69,7 @@ def main(): names=barcodes) plots = [] for barc in barcodes: + logging.info("Processing {}".format(barc))...
logging which barcode is being processed.
py
diff --git a/mooch/stripe.py b/mooch/stripe.py index <HASH>..<HASH> 100644 --- a/mooch/stripe.py +++ b/mooch/stripe.py @@ -32,7 +32,7 @@ class StripeMoocher(BaseMoocher): 'payment': payment, 'publishable_key': self.publishable_key, - 'LANGUAGE_CODE': request.LANGUAGE_CODE, + ...
requests do not always have a LANGUAGE_CODE attribute
py
diff --git a/elpy/auto_pep8.py b/elpy/auto_pep8.py index <HASH>..<HASH> 100644 --- a/elpy/auto_pep8.py +++ b/elpy/auto_pep8.py @@ -1,6 +1,10 @@ """Glue for the "autopep8" library. """ + +from elpy.rpc import Fault + + try: import autopep8 except ImportError: # pragma: no cover @@ -11,4 +15,7 @@ def fix_code...
Ensure autopep8 is installed before fixing code
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ import os setup( name='Stegano', - version='0.2', + version='0.3', author='Cédric Bonhomme', author_email='kimble.mandel@gmail.com', packages=['stegano'],
Release <I>. You can now use Stéganô as a library in your Python program (python setup.py install) or as a 'program' thanks to the scripts provided in the bin directory.
py
diff --git a/salt/states/alternatives.py b/salt/states/alternatives.py index <HASH>..<HASH> 100644 --- a/salt/states/alternatives.py +++ b/salt/states/alternatives.py @@ -131,6 +131,8 @@ def remove(name, path): def auto(name): ''' + .. versionadded:: 0.17.0 + Instruct alternatives to use the highest pri...
Add versionadded directives for new states
py
diff --git a/xport.py b/xport.py index <HASH>..<HASH> 100644 --- a/xport.py +++ b/xport.py @@ -548,8 +548,6 @@ def dump(fp, data, mode='rows'): instance of tuple that has a ``._fields`` attribute), the column labels will be inferred from the fields of that row. - The rows should be an i - Alternatel...
remove some cruft from the docstring
py
diff --git a/shinken/log.py b/shinken/log.py index <HASH>..<HASH> 100644 --- a/shinken/log.py +++ b/shinken/log.py @@ -208,4 +208,8 @@ class __ConsoleLogger: logger._log(*args, **kwargs) +#--- create the main logger --- +logging.setLoggerClass(Log) +logger = logging.getLogger('shinken') + console_logger =...
Enh : Merging logging PR
py
diff --git a/km3pipe/__version__.py b/km3pipe/__version__.py index <HASH>..<HASH> 100644 --- a/km3pipe/__version__.py +++ b/km3pipe/__version__.py @@ -10,6 +10,14 @@ Pep 386 compliant version info. (1, 2, 0, 'beta', 2) => "1.2b2" """ +import json +import urllib2 +from km3pipe.logger import logging + +__author__...
Checks for the latest version on PyPI
py
diff --git a/pycbc/waveform/waveform.py b/pycbc/waveform/waveform.py index <HASH>..<HASH> 100644 --- a/pycbc/waveform/waveform.py +++ b/pycbc/waveform/waveform.py @@ -77,7 +77,7 @@ def _lalsim_td_waveform(**p): float(p['inclination']), float(p['lambda1']), float(p['lambda2']), flags, No...
updated for changed lalsim interface
py
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -19,6 +19,7 @@ from ..core.options import Store, Compositor, SkipRendering from ..core.overlay import NdOverlay from ..core.spaces import HoloMap, Dynam...
Ensure stream parameters are updated by Plot.refresh
py
diff --git a/urlscan/urlchoose.py b/urlscan/urlchoose.py index <HASH>..<HASH> 100644 --- a/urlscan/urlchoose.py +++ b/urlscan/urlchoose.py @@ -251,8 +251,8 @@ class URLChooser: def _cur_focus(self, fp=0): # Return correct focus when toggling 'show context' if self.compact is False: - i...
Fix initial focus with only 1 or 2 urls
py
diff --git a/bugzilla/bug.py b/bugzilla/bug.py index <HASH>..<HASH> 100644 --- a/bugzilla/bug.py +++ b/bugzilla/bug.py @@ -37,9 +37,7 @@ class Bug(object): if bug_id: dict["id"] = bug_id - log.debug("Bug(%s)", sorted(dict.keys())) self._update_dict(dict) - self.weburl = ...
bug: Drop logging of updated dict keys, it's not interesting
py
diff --git a/KafNafParserMod.py b/KafNafParserMod.py index <HASH>..<HASH> 100644 --- a/KafNafParserMod.py +++ b/KafNafParserMod.py @@ -763,7 +763,7 @@ class KafNafParser: @type header: L{CHeader} @param header: the header object """ - self.root.insert(0,self.header.get_node()) + self.root.insert(0,header.ge...
Small bug fixed on set_header
py
diff --git a/actions/buildrelease.py b/actions/buildrelease.py index <HASH>..<HASH> 100644 --- a/actions/buildrelease.py +++ b/actions/buildrelease.py @@ -71,7 +71,7 @@ class BuildReleaseAction: else: if repo.is_dirty(): repo.git.add(u=True) - repo.git.commit(m='Rel...
Adding [heliumcli] to automated commit messages.
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -15,5 +15,5 @@ __revision__ = "$Id$" # Updated automatically by the Python release process. # #--start constants-- -__version__ = "3.2a2" +__version__ = "3.2a3" #--end constants--
Bump to <I>a3.
py
diff --git a/lib/svtplay_dl/service/sr.py b/lib/svtplay_dl/service/sr.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/sr.py +++ b/lib/svtplay_dl/service/sr.py @@ -30,7 +30,10 @@ class Sr(Service, OpenGraphThumbMixin): playerinfo = json.loads(data)["playerInfo"] streams = {} for i ...
sr: add http scheme to url only if it's missing
py
diff --git a/napd/nap.py b/napd/nap.py index <HASH>..<HASH> 100644 --- a/napd/nap.py +++ b/napd/nap.py @@ -1473,7 +1473,7 @@ class Nap: SELECT prefix FROM ip_net_plan WHERE """ + where + """ ORDER BY prefix LIMIT """ + str(int(search_options['max_result']) + int(search...
Bug fix, correct ORDER BY on prefix search We need to have the list correctly ordered before the distinct. Fixes issue #<I>, for real this time I hope ;)
py
diff --git a/nodeconductor/iaas/serializers.py b/nodeconductor/iaas/serializers.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/serializers.py +++ b/nodeconductor/iaas/serializers.py @@ -98,12 +98,13 @@ class InstanceSerializer(RelatedResourcesFieldMixin, instance_licenses = InstanceLicenseSerializer(read_...
Expose Instance OS in REST
py
diff --git a/fc/mef.py b/fc/mef.py index <HASH>..<HASH> 100644 --- a/fc/mef.py +++ b/fc/mef.py @@ -9,9 +9,7 @@ import collections import numpy as np from scipy.optimize import minimize -import scipy.ndimage.filters import matplotlib.pyplot as plt -from sklearn.cluster import DBSCAN from sklearn.mixture import GM...
Removed unnecesary imports from fc.mef.
py
diff --git a/loomengine/client/common.py b/loomengine/client/common.py index <HASH>..<HASH> 100644 --- a/loomengine/client/common.py +++ b/loomengine/client/common.py @@ -76,6 +76,16 @@ def get_server_public_ip(): else: raise Exception("Unknown server type: %s" % server_type) +def get_server_private_ip(...
Added check for server private IP.
py
diff --git a/salt/modules/systemd.py b/salt/modules/systemd.py index <HASH>..<HASH> 100644 --- a/salt/modules/systemd.py +++ b/salt/modules/systemd.py @@ -234,6 +234,34 @@ def missing(name): ''' return not available(name) +def unmask(name): + ''' + Unmask the specified service with systemd + + CLI ...
Update systemd.py [Feature] add the possibility to mask/unmask services with systemctl
py
diff --git a/multiqc/modules/pbmarkdup/pbmarkdup.py b/multiqc/modules/pbmarkdup/pbmarkdup.py index <HASH>..<HASH> 100755 --- a/multiqc/modules/pbmarkdup/pbmarkdup.py +++ b/multiqc/modules/pbmarkdup/pbmarkdup.py @@ -30,7 +30,6 @@ class MultiqcModule(BaseMultiqcModule): """ ), ...
Run black on pbmarkdup.py
py
diff --git a/ddmrp/models/stock_buffer.py b/ddmrp/models/stock_buffer.py index <HASH>..<HASH> 100644 --- a/ddmrp/models/stock_buffer.py +++ b/ddmrp/models/stock_buffer.py @@ -505,9 +505,10 @@ class StockBuffer(models.Model): [0, 2], [self.net_flow_position, self.net_flow_position], line_width=2 ) ...
[<I>][FIX] ddmrp: quantity on hand in ddmrp buffer chart (continuation)
py
diff --git a/pypiper/manager.py b/pypiper/manager.py index <HASH>..<HASH> 100644 --- a/pypiper/manager.py +++ b/pypiper/manager.py @@ -1617,7 +1617,7 @@ class PipelineManager(object): """ Stop a completely finished pipeline. """ self.stop_pipeline(status=COMPLETE_FLAG) - def fail_pipeline(self, e...
allow pipeline fail messages to be a string. Fix #<I>
py
diff --git a/superset/viz.py b/superset/viz.py index <HASH>..<HASH> 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -625,17 +625,18 @@ class TableViz(BaseViz): self.form_data.get("percent_metrics") or [] ) - df = pd.concat( - [ - df[non_percent_metric_colum...
Handle empty dataframes in TableViz (#<I>) TableViz fails to display empty dataframes returning an error like: "None of [Index(['project', 'count'], dtype='object')] are in the [columns]" The behavior has been observed while testing <I>rc3 with Druid datasources. issue: #<I>
py
diff --git a/absl/flags/_validators.py b/absl/flags/_validators.py index <HASH>..<HASH> 100644 --- a/absl/flags/_validators.py +++ b/absl/flags/_validators.py @@ -340,9 +340,8 @@ def mark_flag_as_required(flag_name, flag_values=_flagvalues.FLAGS): app.run() Because validation happens at app.run() we want to...
Remove 'However' from methoddoc. The negation/contrast word 'however' may be confusing/misleading since the sentence supports the argument to not introduce required-ness by imports/tests which occurs when this practice is not followed. PiperOrigin-RevId: <I>
py
diff --git a/lib/tower_cli/utils/parser.py b/lib/tower_cli/utils/parser.py index <HASH>..<HASH> 100644 --- a/lib/tower_cli/utils/parser.py +++ b/lib/tower_cli/utils/parser.py @@ -19,6 +19,7 @@ import json import ast import shlex import sys +import six from tower_cli.utils import exceptions as exc, debug from tow...
Fix flake8 for py3 as well
py
diff --git a/tests/unit/modules/mac_xattr_test.py b/tests/unit/modules/mac_xattr_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/mac_xattr_test.py +++ b/tests/unit/modules/mac_xattr_test.py @@ -6,7 +6,7 @@ from __future__ import absolute_import # Import Salt Testing Libs from salttesting import TestCase ...
Fix some pylint errors
py
diff --git a/tornado/test/twisted_test.py b/tornado/test/twisted_test.py index <HASH>..<HASH> 100644 --- a/tornado/test/twisted_test.py +++ b/tornado/test/twisted_test.py @@ -453,9 +453,10 @@ else: # Doesn't clean up its temp files 'test_shebang', ], - 'twisted.internet.tes...
Disable twisted process tests, which don't work for me on OSX <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,10 +23,12 @@ setup( install_requires=[ 'PyPDF3', 'pdfrw', + 'PyMuPDF', 'Pillow', 'PySimpleGUI', 'reportlab', 'looptools', + 'tqdm', ], incl...
Added PyMuPDF and tqdm to install_requires
py
diff --git a/compliance_checker/cf/cf.py b/compliance_checker/cf/cf.py index <HASH>..<HASH> 100644 --- a/compliance_checker/cf/cf.py +++ b/compliance_checker/cf/cf.py @@ -854,11 +854,9 @@ class CFBaseCheck(BaseCheck): ok_count = 0 same_type = flag_masks.dtype == v.dtype - ...
Allow flag_masks to have any bitwise operator as a value. Fixes #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ setup( "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", ...
setup: Mark Python <I> as supported
py
diff --git a/pylivetrader/assets/assets.py b/pylivetrader/assets/assets.py index <HASH>..<HASH> 100644 --- a/pylivetrader/assets/assets.py +++ b/pylivetrader/assets/assets.py @@ -23,7 +23,6 @@ class Asset: def __init__(self, sid, exchange, symbol="", asset_name="", **kwargs): self.sid = sid - sel...
Stop using sid_hash in Asset Since the builtin hash() returns different value after restart, pickled Asset instances were returning false result in hash key and equality operation. Comparing the raw value shouldn't be that slow.
py
diff --git a/docs/versionutils.py b/docs/versionutils.py index <HASH>..<HASH> 100644 --- a/docs/versionutils.py +++ b/docs/versionutils.py @@ -29,7 +29,8 @@ translations_list = [ ('en', 'English'), ('ja_JP', 'Japanese'), ('de_DE', 'German'), - ('ko_KR', 'Korean') + ('ko_KR', 'Korean'), + ('pt_BR...
Preparing to release Portuguese, Brazilian Qiskit Docs (#<I>) * Adding pt_BR to the translations list * Update versionutils.py
py
diff --git a/fs/errors.py b/fs/errors.py index <HASH>..<HASH> 100644 --- a/fs/errors.py +++ b/fs/errors.py @@ -43,6 +43,7 @@ __all__ = [ 'ResourceInvalid', 'ResourceLocked', 'ResourceNotFound', + 'ResourceReadOnly', 'Unsupported', ]
Add `ResourceReadOnly` to `__all__` in `fs.errors` (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,8 +7,13 @@ except ImportError: use_setuptools() from setuptools import setup -import textwrap import os +import sys +import textwrap + +extra_tests_require = [] +if sys.version_info < (3, 0): + extra_tests_r...
Removing mock from setup.py for Python 3.x
py
diff --git a/googlemaps/directions.py b/googlemaps/directions.py index <HASH>..<HASH> 100644 --- a/googlemaps/directions.py +++ b/googlemaps/directions.py @@ -33,7 +33,7 @@ def directions(client, origin, destination, :param destination: The address or latitude/longitude value from which you wish to calc...
docs: fix simple typo, preffix -> prefix (#<I>) There is a small typo in googlemaps/directions.py. Should read `prefix` rather than `preffix`.
py
diff --git a/xhtml2pdf/parser.py b/xhtml2pdf/parser.py index <HASH>..<HASH> 100644 --- a/xhtml2pdf/parser.py +++ b/xhtml2pdf/parser.py @@ -211,6 +211,17 @@ def getCSSAttr(self, cssCascade, attrName, default=NotImplemented): #TODO: Monkeypatching standard lib should go away. xml.dom.minidom.Element.getCSSAttr = getCSS...
Create a system to alias non-standard tags to standard ones. The only currently defined tag aliases "bgcolor" to "background-color", but this puts generalized system in place.
py
diff --git a/py/testdir_multi_jvm/test_GBM_manyfiles_train_test.py b/py/testdir_multi_jvm/test_GBM_manyfiles_train_test.py index <HASH>..<HASH> 100644 --- a/py/testdir_multi_jvm/test_GBM_manyfiles_train_test.py +++ b/py/testdir_multi_jvm/test_GBM_manyfiles_train_test.py @@ -84,7 +84,7 @@ class Basic(unittest.TestCase):...
maybe Exec needs more time for this dataset
py
diff --git a/openquake/calculators/ebrisk.py b/openquake/calculators/ebrisk.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/ebrisk.py +++ b/openquake/calculators/ebrisk.py @@ -184,6 +184,7 @@ class EbriskCalculator(event_based.EventBasedCalculator): InsuredLosses(self.policy_name, self.polic...
Better logging [skip CI]
py
diff --git a/module/__init__.py b/module/__init__.py index <HASH>..<HASH> 100644 --- a/module/__init__.py +++ b/module/__init__.py @@ -106,10 +106,11 @@ class Unpacker(object): self.offset += type_pad(size, self.offset) def unpack(self, fmt, increment=True): + fmt = "=" + fmt size = stru...
When unpacking, compute size without adjusting for alignment.
py
diff --git a/ieml/ieml_objects/parser/lexer.py b/ieml/ieml_objects/parser/lexer.py index <HASH>..<HASH> 100644 --- a/ieml/ieml_objects/parser/lexer.py +++ b/ieml/ieml_objects/parser/lexer.py @@ -27,7 +27,7 @@ def get_lexer(module=None): t_L_CURLY_BRACKET = r'\{' t_R_CURLY_BRACKET = r'\}' t_SLASH = r'\/' ...
Improve the literals notation : inside a literal, we can escape the closing > by typing \>.
py
diff --git a/amibaker/ami_baker.py b/amibaker/ami_baker.py index <HASH>..<HASH> 100644 --- a/amibaker/ami_baker.py +++ b/amibaker/ami_baker.py @@ -54,5 +54,5 @@ class AmiBaker: ec2.wait_until_image_available() ec2.terminate() - print('Your AMI has been cooked and is ready to be consum...
An AMI is baked, not cooked!
py
diff --git a/gns3server/schemas/dynamips_device.py b/gns3server/schemas/dynamips_device.py index <HASH>..<HASH> 100644 --- a/gns3server/schemas/dynamips_device.py +++ b/gns3server/schemas/dynamips_device.py @@ -218,6 +218,16 @@ DEVICE_NIO_SCHEMA = { "required": ["type", "ethernet_device"], "ad...
Adds NAT NIO in device schema validation so they can return an error that it is not supported.
py
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index <HASH>..<HASH> 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -50,6 +50,7 @@ result_xpath = '//div[@class="result results_links results_links_deep web-result url_xpath = './/a[@class="result__a"]/@href' title_x...
add correction support for duckduckgo
py
diff --git a/examples/lua_parser.py b/examples/lua_parser.py index <HASH>..<HASH> 100644 --- a/examples/lua_parser.py +++ b/examples/lua_parser.py @@ -232,10 +232,13 @@ stat <<= pp.Group( | for_seq_stat | func_call_stat | if_stat + | function_def ) +lua_script = stat[...] + # ignore comments -func...
Fix up lua parser to parse scripts of zero-or-more statements
py
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py index <HASH>..<HASH> 100644 --- a/pycm/pycm_obj.py +++ b/pycm/pycm_obj.py @@ -624,7 +624,8 @@ class ConfusionMatrix(): def __copy__(self): """ - Returns a copy of ConfusionMatrix. + Return a copy of ConfusionMatrix. + :return: copy ...
fix : docstring fixed.
py
diff --git a/test/test_treetime.py b/test/test_treetime.py index <HASH>..<HASH> 100644 --- a/test/test_treetime.py +++ b/test/test_treetime.py @@ -7,7 +7,7 @@ else: # Tests -def import_short_test(): +def test_import_short(): print("testing short imports") from treetime import GTR from treetime impor...
TST: rename a test so pytest picks it up
py
diff --git a/uqbar/book/sphinx.py b/uqbar/book/sphinx.py index <HASH>..<HASH> 100644 --- a/uqbar/book/sphinx.py +++ b/uqbar/book/sphinx.py @@ -22,7 +22,7 @@ try: def black_format(lines): mode = black.FileMode( - line_length=80, target_versions=[black.TargetVersion.PY36] + line_leng...
Cleaned up black.FileMode initialization. (#<I>)
py
diff --git a/models/fallahi_eval/assemble_pysb.py b/models/fallahi_eval/assemble_pysb.py index <HASH>..<HASH> 100644 --- a/models/fallahi_eval/assemble_pysb.py +++ b/models/fallahi_eval/assemble_pysb.py @@ -18,6 +18,8 @@ def assemble_pysb(stmts, data_genes, contextualize=False): stmts = ac.filter_direct(stmts) ...
Strip supports/supported by from PySB statements
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ setup( version=read_version(), description='AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates', long_description=read('README.md'), + long_descripti...
chore: configure PyPI long_description to use Markdown (#<I>)
py
diff --git a/account/views.py b/account/views.py index <HASH>..<HASH> 100644 --- a/account/views.py +++ b/account/views.py @@ -1,7 +1,7 @@ from django.http import Http404 from django.shortcuts import redirect from django.utils.translation import ugettext_lazy as _ -from django.views.generic.base import TemplateView,...
changed LogoutView to inherit View directly and use TemplateResponseMixin instead
py
diff --git a/h2o-perf/bench/py/h2oPerf/Alerting.py b/h2o-perf/bench/py/h2oPerf/Alerting.py index <HASH>..<HASH> 100644 --- a/h2o-perf/bench/py/h2oPerf/Alerting.py +++ b/h2o-perf/bench/py/h2oPerf/Alerting.py @@ -375,6 +375,9 @@ class Alerter: for key in self.correct_alert.alert_list: ...
add a nice statement if tests don't fail due to some reason
py
diff --git a/photon.py b/photon.py index <HASH>..<HASH> 100644 --- a/photon.py +++ b/photon.py @@ -9,6 +9,7 @@ import shutil import random import urllib3 import argparse +import warnings import threading from re import search, findall from requests import get, post @@ -21,6 +22,7 @@ from plugins.exporter import e...
Update photon.py urllib3 shows ssl warnings during execution. Ignored that for clear execution on script.
py
diff --git a/onecodex/api.py b/onecodex/api.py index <HASH>..<HASH> 100644 --- a/onecodex/api.py +++ b/onecodex/api.py @@ -19,6 +19,7 @@ from onecodex.utils import get_raven_client, collapse_user from onecodex.vendored.potion_client import Client as PotionClient from onecodex.vendored.potion_client.converter import P...
Send CLI version to API in headers. Closes #<I>.
py
diff --git a/chatterbot/parsing.py b/chatterbot/parsing.py index <HASH>..<HASH> 100644 --- a/chatterbot/parsing.py +++ b/chatterbot/parsing.py @@ -29,7 +29,7 @@ re_duration = '(before|after|earlier|later|ago|from\snow)' re_year = '(19|20)\d{2}|^(19|20)\d{2}' re_timeframe = 'this|coming|next|following|previous|last|en...
Datetime parsing does recognize am or pm
py
diff --git a/posttroll/subscriber.py b/posttroll/subscriber.py index <HASH>..<HASH> 100644 --- a/posttroll/subscriber.py +++ b/posttroll/subscriber.py @@ -298,9 +298,10 @@ class Subscribe(object): for service in self._services: addr = _get_addr_loop(service, self._timeout) if not addr...
A subscribe context doesn't need a publisher to start anymore.
py
diff --git a/pyuntl/untldoc.py b/pyuntl/untldoc.py index <HASH>..<HASH> 100644 --- a/pyuntl/untldoc.py +++ b/pyuntl/untldoc.py @@ -690,7 +690,7 @@ def untl_to_hash_dict(untl_elements, meaningfulMeta=True): show no meaningful change to metadata records. """ untl_dict = untlpy2dict(untl_elements) - if m...
Don't error on missing meta when hashing untl dict.
py
diff --git a/WrightTools/__version__.py b/WrightTools/__version__.py index <HASH>..<HASH> 100644 --- a/WrightTools/__version__.py +++ b/WrightTools/__version__.py @@ -30,6 +30,6 @@ if os.path.isfile(p): with open(p) as f: __branch__ = f.readline().rstrip().split(r'/')[-1] if __branch__ != 'master': -...
__version__ complient with pep<I> (#<I>)
py
diff --git a/zubbi/scraper/repos/github.py b/zubbi/scraper/repos/github.py index <HASH>..<HASH> 100644 --- a/zubbi/scraper/repos/github.py +++ b/zubbi/scraper/repos/github.py @@ -138,7 +138,11 @@ class GitHubRepository(Repository): return flat_blame def _get_repo_object(self): - owner, repo_name ...
Avoid splitting invalid GH repository names This invalid repo name actually comes from a bug in the tenant config parser, which results in a repo 'include' that cannot be split into (owner, /, repo). Thus, the error should be fixed directly in the tenant parser. Still, I find it's a good idea to make this part more ro...
py
diff --git a/py3status/modules/net_rate.py b/py3status/modules/net_rate.py index <HASH>..<HASH> 100644 --- a/py3status/modules/net_rate.py +++ b/py3status/modules/net_rate.py @@ -162,7 +162,7 @@ class Py3status: # get the deltas into variable delta = deltas[interface] if interface else None ...
net_rate: prevent errors after resuming from sleep (#<I>)
py
diff --git a/padatious/intent_container.py b/padatious/intent_container.py index <HASH>..<HASH> 100644 --- a/padatious/intent_container.py +++ b/padatious/intent_container.py @@ -135,6 +135,8 @@ class IntentContainer(object): each time a new intent is trained force (bool): Whether to force...
Add return value to train method This returns whether training succeeded (or False if it timed out)
py
diff --git a/pyforms/gui/Controls/ControlEventTimeline/TimelineChart.py b/pyforms/gui/Controls/ControlEventTimeline/TimelineChart.py index <HASH>..<HASH> 100644 --- a/pyforms/gui/Controls/ControlEventTimeline/TimelineChart.py +++ b/pyforms/gui/Controls/ControlEventTimeline/TimelineChart.py @@ -27,7 +27,7 @@ class Timel...
compliance to python3
py
diff --git a/src/rezplugins/release_vcs/git.py b/src/rezplugins/release_vcs/git.py index <HASH>..<HASH> 100644 --- a/src/rezplugins/release_vcs/git.py +++ b/src/rezplugins/release_vcs/git.py @@ -73,7 +73,8 @@ class GitReleaseVCS(ReleaseVCS): "--symbolic-full-name", "@{u}")[0] ...
git: make check for "no upstream branch" also check "no upstream configured"
py
diff --git a/utils/skymap.py b/utils/skymap.py index <HASH>..<HASH> 100644 --- a/utils/skymap.py +++ b/utils/skymap.py @@ -13,14 +13,11 @@ import ugali.utils.projector def subpixel(pix, nside_pix, nside_subpix): """ - Return the pixel indices at resolution nside_subpix that are within pixel pix at resolution...
Implemented the new query_disc call in subpixel
py
diff --git a/harpoon/actions.py b/harpoon/actions.py index <HASH>..<HASH> 100644 --- a/harpoon/actions.py +++ b/harpoon/actions.py @@ -45,7 +45,9 @@ def push(collector, image, **kwargs): """Push an image""" if not image.image_index: raise BadOption("The chosen image does not have a image_index config...
Get tag from artifact for pull/push
py
diff --git a/tests/test_automated_analysis.py b/tests/test_automated_analysis.py index <HASH>..<HASH> 100644 --- a/tests/test_automated_analysis.py +++ b/tests/test_automated_analysis.py @@ -85,7 +85,7 @@ class AutomatedAnalysisTest(unittest.TestCase): """ DlInfo = collections.namedtuple("DlInfo", "fn...
Update test genome data with small RNA.
py
diff --git a/tensor/sources/network.py b/tensor/sources/network.py index <HASH>..<HASH> 100644 --- a/tensor/sources/network.py +++ b/tensor/sources/network.py @@ -28,7 +28,9 @@ class HTTP(Source): :type method: str. :match: A text string to match in the document when it is correct :type match: str. - ...
hyphens make everyones life hard
py
diff --git a/python_modules/dagster/dagster/core/storage/file_cache.py b/python_modules/dagster/dagster/core/storage/file_cache.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster/dagster/core/storage/file_cache.py +++ b/python_modules/dagster/dagster/core/storage/file_cache.py @@ -7,6 +7,7 @@ import dagster._c...
chore: mark FileCache for deprecation in <I> (#<I>)
py
diff --git a/irclib.py b/irclib.py index <HASH>..<HASH> 100644 --- a/irclib.py +++ b/irclib.py @@ -1358,7 +1358,7 @@ def parse_nick_modes(mode_string): Example: - >>> irclib.parse_nick_modes(\"+ab-c\") + >>> parse_nick_modes(\"+ab-c\") [['+', 'a', None], ['+', 'b', None], ['-', 'c', None]] """ ...
Updated doctests to run
py
diff --git a/mcpartools/generator.py b/mcpartools/generator.py index <HASH>..<HASH> 100644 --- a/mcpartools/generator.py +++ b/mcpartools/generator.py @@ -27,6 +27,7 @@ class Options: if not os.path.exists(self.input_path): logger.error("Input path " + str(self.input_path) + " doesn't exists") ...
root directory is extracted from input path if input path points to a file in same directory, then simply running dirname will give empty dirname converting input path to absolute path solves the problem
py