diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/unyt/dimensions.py b/unyt/dimensions.py
index <HASH>..<HASH> 100644
--- a/unyt/dimensions.py
+++ b/unyt/dimensions.py
@@ -248,14 +248,8 @@ def accepts(**arg_units):
Decorated function.
"""
- number_of_args = f.__code__.co_argcount
names_of_args = f.__code__.co_varnam... | Function might have more args than decorator | py |
diff --git a/bigchaindb/config_utils.py b/bigchaindb/config_utils.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/config_utils.py
+++ b/bigchaindb/config_utils.py
@@ -3,8 +3,8 @@
The value of each BigchainDB Server configuration setting is
determined according to the following rules:
-* If it’s set by an environmen... | Changed it’s to it's in 2 places | py |
diff --git a/salt/modules/logrotate.py b/salt/modules/logrotate.py
index <HASH>..<HASH> 100644
--- a/salt/modules/logrotate.py
+++ b/salt/modules/logrotate.py
@@ -110,7 +110,9 @@ def set_(key, value, setting=None, conf_file=default_conf):
salt '*' logrotate.set rotate 2
Can also be used to set a single ... | Changing python code block to text block | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,8 @@ requirements = [
'cryptography',
'jwcrypto',
'six',
- 'requests'
+ 'requests',
+ 'pyasn1 < 0.3', # https://pagure.io/freeipa/issue/7082
]
# extra requirements | Add workaround for pyasn1 <I> issue with FreeIPA pyasn1 <I> broke FreeIPA because ASN1 types no longer take positional arguments in __init__. It broke univ.SequenceOf(char.GeneralString()). <URL> | py |
diff --git a/pyvex/IRStmt/__init__.py b/pyvex/IRStmt/__init__.py
index <HASH>..<HASH> 100644
--- a/pyvex/IRStmt/__init__.py
+++ b/pyvex/IRStmt/__init__.py
@@ -72,7 +72,7 @@ class Dirty(IRStmt):
class Exit(IRStmt):
def __str__(self):
- return "if (%s) goto {%s} %s" % (self.guard, self.jumpkind, hex(self.d... | Fixes #4 - better pretty printing for Fish | py |
diff --git a/salt/modules/tomcat.py b/salt/modules/tomcat.py
index <HASH>..<HASH> 100644
--- a/salt/modules/tomcat.py
+++ b/salt/modules/tomcat.py
@@ -42,6 +42,7 @@ Notes:
# Import python libs
import glob
+import hashlib
import urllib
import urllib2
import tempfile
@@ -461,6 +462,37 @@ def deploy_war(war, contex... | tomcat.passwd function, convert clear-text password to tomcat-users.xml file | py |
diff --git a/treeherder/config/whitenoise_custom.py b/treeherder/config/whitenoise_custom.py
index <HASH>..<HASH> 100644
--- a/treeherder/config/whitenoise_custom.py
+++ b/treeherder/config/whitenoise_custom.py
@@ -13,7 +13,7 @@ class CustomWhiteNoise(WhiteNoiseMiddleware):
# Matches grunt-cache-bust's style of ... | Bug <I> - Really fix regex for long max-age static assets The previous change adjusted the hash length, however the filenames also no longer use a hyphen as a separator, eg: index.min.fe5b2cd9a<I>c9d1.css | py |
diff --git a/MicroTokenizer/CRF/crf_tokenizer.py b/MicroTokenizer/CRF/crf_tokenizer.py
index <HASH>..<HASH> 100644
--- a/MicroTokenizer/CRF/crf_tokenizer.py
+++ b/MicroTokenizer/CRF/crf_tokenizer.py
@@ -85,7 +85,8 @@ class CRFTokenizer(BaseTokenizer):
pickle_file = self.get_char2feature_file(output_dir)
... | Bugfix: python pickle protocol version compatible with python 2 | py |
diff --git a/util/io/fs.py b/util/io/fs.py
index <HASH>..<HASH> 100644
--- a/util/io/fs.py
+++ b/util/io/fs.py
@@ -246,17 +246,6 @@ def remove_recursively(directory, force=False, not_exist_okay=False, exclude_dir
topdown=False)
-## utility functions
-
-def flush_and_close(file):
- file.flush()
- ... | API: util.io.fs.flush_and_close removed | py |
diff --git a/seqmagick/scripts/cli.py b/seqmagick/scripts/cli.py
index <HASH>..<HASH> 100644
--- a/seqmagick/scripts/cli.py
+++ b/seqmagick/scripts/cli.py
@@ -24,7 +24,7 @@ def main(argv=sys.argv[1:]):
logformat = '%(message)s'
# set up logging
- logging.basicConfig(stream=sys.stdout, format=logforma... | Send logging to stderr, not stdout In order to support Unix piping and redirection, any error messages and logging should go to stderr, only data should go to stdout. Should close issue #<I> | py |
diff --git a/dvc/project.py b/dvc/project.py
index <HASH>..<HASH> 100644
--- a/dvc/project.py
+++ b/dvc/project.py
@@ -97,7 +97,9 @@ class Project(object):
return proj
def _ignore(self):
- l = [self.link_state.state_file,
+ l = [self.state.state_file,
+ self.state._lock_file.lo... | dvc: don't forget to add state and state.lock to gitignore | py |
diff --git a/vespa/stars/trilegal.py b/vespa/stars/trilegal.py
index <HASH>..<HASH> 100644
--- a/vespa/stars/trilegal.py
+++ b/vespa/stars/trilegal.py
@@ -94,7 +94,7 @@ def get_trilegal(filename,ra,dec,folder='.', galactic=False,
filterset,maglim,outfil... | change skip_footer to skipfooter A pandas `FutureWarning` explains that `skip_footer` has been deprecated, and to switch to `skipfooter`, as seen by @elisabethadams in #9. | py |
diff --git a/salt/modules/gentoolkit.py b/salt/modules/gentoolkit.py
index <HASH>..<HASH> 100644
--- a/salt/modules/gentoolkit.py
+++ b/salt/modules/gentoolkit.py
@@ -3,6 +3,19 @@ Support for Gentoolkit
'''
+def _has_gentoolkit():
+ if __salt__['pkg.version']('app-portage/gentoolkit'):
+ return True
+ ... | Added virtual to gentoolkit | py |
diff --git a/jax/core.py b/jax/core.py
index <HASH>..<HASH> 100644
--- a/jax/core.py
+++ b/jax/core.py
@@ -632,7 +632,7 @@ def find_top_trace(args) -> Optional[Tracer]:
raise TypeError(f"Argument '{arg}' of type {type(arg)} is not a valid JAX type")
return top_so_far
- top_trace = reduce(check_arg, args,... | Fix pytype for copybara import (#<I>) | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -981,6 +981,7 @@ class State(object):
elif status == 'change':
ret = self.call(low)
if not ret['changes']:
+ low['sfun'] = low['fun']
low['... | Pass state function into low data wor mod_watch calls | py |
diff --git a/genmodel/manager.py b/genmodel/manager.py
index <HASH>..<HASH> 100644
--- a/genmodel/manager.py
+++ b/genmodel/manager.py
@@ -7,6 +7,7 @@ import logging
import os
import psycopg2
import requests
+import shlex
import subprocess
import tarfile
import threading
@@ -238,11 +239,11 @@ def run_job(job_desc... | added shlex for splitting bash ansible command called by python; simplified the command | py |
diff --git a/ryu/services/protocols/bgp/operator/commands/show/neighbor.py b/ryu/services/protocols/bgp/operator/commands/show/neighbor.py
index <HASH>..<HASH> 100644
--- a/ryu/services/protocols/bgp/operator/commands/show/neighbor.py
+++ b/ryu/services/protocols/bgp/operator/commands/show/neighbor.py
@@ -102,7 +102,7 ... | bgp/cli: fix internel data destruction due to cli show command | py |
diff --git a/python_modules/libraries/dagster-celery/dagster_celery/cli.py b/python_modules/libraries/dagster-celery/dagster_celery/cli.py
index <HASH>..<HASH> 100644
--- a/python_modules/libraries/dagster-celery/dagster_celery/cli.py
+++ b/python_modules/libraries/dagster-celery/dagster_celery/cli.py
@@ -179,7 +179,7 ... | [dagster_celery] fix bug in pythonpath (#<I>) | py |
diff --git a/misc/templatetags/share_buttons.py b/misc/templatetags/share_buttons.py
index <HASH>..<HASH> 100644
--- a/misc/templatetags/share_buttons.py
+++ b/misc/templatetags/share_buttons.py
@@ -89,6 +89,7 @@ like_functions = [tweet_like, facebook_like, vk_like]
def group_buttons(url, title, funcs, block_class):... | fix issue with unicode urls | py |
diff --git a/nupic/algorithms/anomaly_likelihood.py b/nupic/algorithms/anomaly_likelihood.py
index <HASH>..<HASH> 100644
--- a/nupic/algorithms/anomaly_likelihood.py
+++ b/nupic/algorithms/anomaly_likelihood.py
@@ -480,7 +480,7 @@ def _anomalyScoreMovingAverage(anomalyScores,
for record in anomalyScores:
# Sk... | accepts anomaly records as both lists and tuples | py |
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py
index <HASH>..<HASH> 100755
--- a/src/python/test/test_dxclient.py
+++ b/src/python/test/test_dxclient.py
@@ -5535,12 +5535,8 @@ class TestDXCp(DXTestCase):
fname1 = self.gen_uniq_fname()
create_file_in_project(fname1, se... | Fixing nonexistent folder test based on code review feedback | py |
diff --git a/backtrader/feeds/ibdata.py b/backtrader/feeds/ibdata.py
index <HASH>..<HASH> 100644
--- a/backtrader/feeds/ibdata.py
+++ b/backtrader/feeds/ibdata.py
@@ -253,7 +253,7 @@ class IBData(with_metaclass(MetaIBData, DataBase)):
def islive(self):
'''Returns ``True`` to notify ``Cerebro`` that preloa... | Mark as live feed only if historical download has not been activated | py |
diff --git a/salt/states/kmod.py b/salt/states/kmod.py
index <HASH>..<HASH> 100644
--- a/salt/states/kmod.py
+++ b/salt/states/kmod.py
@@ -120,12 +120,18 @@ def present(name, persist=False, mods=None):
# The remaining modules are not loaded and are available for loading
available = list(set(not_loaded) - set(... | update states kmod * track list of loaded by dependency modules | py |
diff --git a/tests/backends/sqlalchemy/test_storage.py b/tests/backends/sqlalchemy/test_storage.py
index <HASH>..<HASH> 100644
--- a/tests/backends/sqlalchemy/test_storage.py
+++ b/tests/backends/sqlalchemy/test_storage.py
@@ -111,11 +111,19 @@ class TestCategoryManager():
assert category.equal_fields(db_insta... | Add test for SQLAclhemy Category._update Added test that mimics trying to update a non existing ``Category``. That is the passed ``Category`` instance has a PK that is not present in our backend. | py |
diff --git a/pydot.py b/pydot.py
index <HASH>..<HASH> 100644
--- a/pydot.py
+++ b/pydot.py
@@ -1606,7 +1606,7 @@ class Cluster(Graph):
if obj_dict is None:
self.obj_dict['type'] = 'subgraph'
- self.obj_dict['name'] = 'cluster_'+graph_name
+ self.obj_dict['name'] = quote_if_... | API: quote cluster names when necessary It is odd (and can cause problems) that cluster names are not quoted when necessary, though this is done in the methods: - `Node.__init__` - `Edge.__init__` - `Graph.__init__` | py |
diff --git a/openquake/calculators/views.py b/openquake/calculators/views.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/views.py
+++ b/openquake/calculators/views.py
@@ -754,6 +754,16 @@ def view_global_poes(token, dstore):
return rst_table(tbl, header=header)
+@view.add('global_gmfs')
+def view_g... | Added view global_gmfs [skip CI] Former-commit-id: dee<I>d<I>fbabd4e<I>a8cb<I>d<I>e<I>bbd<I> [formerly 5d<I>e<I>aa6fb<I>fb<I>] Former-commit-id: e0badbacec<I>cd<I>f7b2a3e<I>be<I> | py |
diff --git a/project_example/project_example/models.py b/project_example/project_example/models.py
index <HASH>..<HASH> 100644
--- a/project_example/project_example/models.py
+++ b/project_example/project_example/models.py
@@ -22,7 +22,7 @@ class SalmonellaTest(models.Model):
blank=True, null=True)
rawi... | Removed null from m2m fields. | py |
diff --git a/src/Yowsup/connectionmanager.py b/src/Yowsup/connectionmanager.py
index <HASH>..<HASH> 100644
--- a/src/Yowsup/connectionmanager.py
+++ b/src/Yowsup/connectionmanager.py
@@ -436,7 +436,7 @@ class YowsupConnectionManager:
def sendChangeStatus(self,status):
self._d("updating status to: %s"%(status))
... | Removed subject and status encoding, any encoding should be at frontend | py |
diff --git a/oauth2client/client.py b/oauth2client/client.py
index <HASH>..<HASH> 100644
--- a/oauth2client/client.py
+++ b/oauth2client/client.py
@@ -760,6 +760,8 @@ class OAuth2Credentials(Credentials):
d = json.loads(content)
if 'error' in d:
error_msg = d['error']
+ if 'error_d... | Added error description to AccessTokenRefreshError The JSON response returned can contain an "error_description" field that contains additional information about the error. If found, appending to the error message. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,5 +25,6 @@ setup(
"License :: OSI Approved :: BSD License",
],
tests_require=["Django>=1.3", "webtest", "django-webtest"],
+ include_package_data=True,
test_suite='runtests.main',
) | Include package files when installing from PyPI | py |
diff --git a/werkzeug/routing.py b/werkzeug/routing.py
index <HASH>..<HASH> 100644
--- a/werkzeug/routing.py
+++ b/werkzeug/routing.py
@@ -477,7 +477,7 @@ class Rule(RuleFactory):
return -1
elif sw < ow:
return 1
- if len(self._weights) < len(other._weights):
+ ... | reverted one of the routing changes from today because it breaks a unittest --HG-- branch : trunk | py |
diff --git a/flask_unchained/bundles/api/model_resource.py b/flask_unchained/bundles/api/model_resource.py
index <HASH>..<HASH> 100644
--- a/flask_unchained/bundles/api/model_resource.py
+++ b/flask_unchained/bundles/api/model_resource.py
@@ -1,4 +1,5 @@
import inspect
+from typing import *
from flask import curren... | do not wipe out non-automatic-resource-view routes on model resources | py |
diff --git a/host/pybar/analysis/analyze_raw_data.py b/host/pybar/analysis/analyze_raw_data.py
index <HASH>..<HASH> 100644
--- a/host/pybar/analysis/analyze_raw_data.py
+++ b/host/pybar/analysis/analyze_raw_data.py
@@ -84,7 +84,7 @@ class AnalyzeRawData(object):
----------
raw_data_file : string or tu... | ENH: not not use interpreted and analyzed files as raw_data_file | py |
diff --git a/pyxmpp/jabber/vcard.py b/pyxmpp/jabber/vcard.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/jabber/vcard.py
+++ b/pyxmpp/jabber/vcard.py
@@ -391,7 +391,7 @@ class VCardImage(VCardField):
if (not self.uri and not self.image):
raise Empty,"Bad %s value in vcard" % (name,)
... | - last fix applied to two other occurences of the buf (closes #<I>, again) | py |
diff --git a/hypergraph/node.py b/hypergraph/node.py
index <HASH>..<HASH> 100644
--- a/hypergraph/node.py
+++ b/hypergraph/node.py
@@ -1,7 +1,7 @@
from copy import deepcopy
-class Node:
+class Node(object):
def __init__(self, name="", nodeId=-1):
self._name = name
@@ -32,3 +32,11 @@ class Node:
... | added __eq__ and __neq__ operators | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -717,6 +717,8 @@ class DirectoryRecord(object):
# FIXME: we need to implement Ecma-119 section 9.3 for the sorting
# order.
if self.file_ident == '\x00':
+ if other.file_ident == '\x00':
+... | Fix to __lt__ method of directory sorting. | py |
diff --git a/fluent_contents/models/fields.py b/fluent_contents/models/fields.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/models/fields.py
+++ b/fluent_contents/models/fields.py
@@ -170,13 +170,13 @@ class PlaceholderField(PlaceholderRelation):
# Configure the revere relation if possible.
#... | Fix example app / PlaceholderField by enforcing related_name. The name is marked as _FIXME because the reverse traversal does not work yet, so no API guarantee is made except for it being a unique name. | py |
diff --git a/salt/transport/zeromq.py b/salt/transport/zeromq.py
index <HASH>..<HASH> 100644
--- a/salt/transport/zeromq.py
+++ b/salt/transport/zeromq.py
@@ -702,8 +702,10 @@ class AsyncReqMessageClient(object):
def destroy(self):
if hasattr(self, 'stream'):
# TODO: Optionally call stream.cl... | Fix #<I> Workaround for pyzmq's inability to unregister sockets sometimes The stack trace @UtahDave was seeing was due to us trying to double unregister the socket from the ioloop. This code block exists soely to work with pyzmq <I>.x (which does it wrong-- and doesn't work). To maintain compabitility the terribleness... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,10 +46,19 @@ setup(
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Django",
+ "Framework :: Django :: 1.7",
+ "Framework :: Django :: 1.8",
+ ... | Updated the package classifiers. | py |
diff --git a/salt/modules/grains.py b/salt/modules/grains.py
index <HASH>..<HASH> 100644
--- a/salt/modules/grains.py
+++ b/salt/modules/grains.py
@@ -495,6 +495,13 @@ def get_or_set_hash(name,
.. code-block:: bash
salt '*' grains.get_or_set_hash 'django:SECRET_KEY' 50
+
+ .. warning::
+
+ ... | Add warning to get_or_set_hash about reserved chars Refs #<I> | py |
diff --git a/shinken/objects/module.py b/shinken/objects/module.py
index <HASH>..<HASH> 100644
--- a/shinken/objects/module.py
+++ b/shinken/objects/module.py
@@ -74,7 +74,8 @@ class Modules(Items):
if plug is not None:
new_modules.append(plug)
else:
- ... | Keep error message for console error reporting #<I> | py |
diff --git a/azure-servicemanagement-legacy/azure/servicemanagement/servicemanagementclient.py b/azure-servicemanagement-legacy/azure/servicemanagement/servicemanagementclient.py
index <HASH>..<HASH> 100644
--- a/azure-servicemanagement-legacy/azure/servicemanagement/servicemanagementclient.py
+++ b/azure-servicemanage... | Extend get_path to handle more granular endpoints Publishing details, for example, are nested below a typical endpoint path. An optional suffix on the path makes more granular endpoints reachable without requiring any change to existing code. | py |
diff --git a/ibis/expr/types/temporal.py b/ibis/expr/types/temporal.py
index <HASH>..<HASH> 100644
--- a/ibis/expr/types/temporal.py
+++ b/ibis/expr/types/temporal.py
@@ -622,6 +622,12 @@ class IntervalValue(Value):
__neg__ = negate
+ @staticmethod
+ def __negate_op__():
+ import ibis.expr.operati... | chore: add negate to interval expressions | py |
diff --git a/cherrypy/_cprequest.py b/cherrypy/_cprequest.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cprequest.py
+++ b/cherrypy/_cprequest.py
@@ -35,6 +35,7 @@ class Request(object):
self.hooks = tools.HookMap(pts)
self.hooks.failsafe = ['on_start_resource', 'on_end_resource',
... | Might as well keep track of InternalRedirects. | py |
diff --git a/Lib/ufo2ft/fontInfoData.py b/Lib/ufo2ft/fontInfoData.py
index <HASH>..<HASH> 100644
--- a/Lib/ufo2ft/fontInfoData.py
+++ b/Lib/ufo2ft/fontInfoData.py
@@ -75,7 +75,7 @@ def openTypeNameVersionFallback(info):
"""
versionMajor = getAttrWithFallback(info, "versionMajor")
versionMinor = getAttrWi... | Include "Version" in version name table entry This is in the OpenType spec: <URL> | py |
diff --git a/pub/pub.py b/pub/pub.py
index <HASH>..<HASH> 100644
--- a/pub/pub.py
+++ b/pub/pub.py
@@ -5,7 +5,7 @@ def task(f):
return f
def run(cmd, *args, **kwargs):
- out = run(cmd, *args, **kwargs)
+ out = envoy.run(cmd, *args, **kwargs)
if out.status_code > 0:
stdout.write("error runnin... | let's not recurse infinitely, hmmm? | py |
diff --git a/txaio/aio.py b/txaio/aio.py
index <HASH>..<HASH> 100644
--- a/txaio/aio.py
+++ b/txaio/aio.py
@@ -55,6 +55,12 @@ except ImportError:
from trollius import iscoroutine
from trollius import Future
+try:
+ from types import AsyncGeneratorType # python 3.5+
+except ImportError:
+ class AsyncG... | Warn if as_future() call makes an async-generator | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ def read(fname):
setup(
name="Pebble",
- version="4.0.0",
+ version="4.1.0",
author="Matteo Cafasso",
author_email="noxdafox@gmail.com",
description=("Threading and multiprocessing e... | release <I> - Added map function to ProcessPool and ThreadPool - ProcessPool.schedule timeout defaulted to None | py |
diff --git a/photutils/detection/findstars.py b/photutils/detection/findstars.py
index <HASH>..<HASH> 100644
--- a/photutils/detection/findstars.py
+++ b/photutils/detection/findstars.py
@@ -273,6 +273,12 @@ def daofind(data, threshold, fwhm, ratio=1.0, theta=0.0, sigma_radius=1.5,
``-2.5 * log10(flux)``. T... | Add notes about convolution in findstars | py |
diff --git a/salt/states/ddns.py b/salt/states/ddns.py
index <HASH>..<HASH> 100644
--- a/salt/states/ddns.py
+++ b/salt/states/ddns.py
@@ -90,7 +90,7 @@ def absent(name, zone, data=None, rdtype=None, **kwargs):
DNS resource type. If omitted, all types will be purged.
``**kwargs``
- Additional arg... | Fixing ddns.absent docs and fixing the invalid output that ddns.absent returns | py |
diff --git a/polymodels/__init__.py b/polymodels/__init__.py
index <HASH>..<HASH> 100644
--- a/polymodels/__init__.py
+++ b/polymodels/__init__.py
@@ -2,6 +2,6 @@ from __future__ import unicode_literals
from django.utils.version import get_version
-VERSION = (1, 5, 0, 'alpha', 1)
+VERSION = (1, 5, 0, 'alpha', 2)
... | Bumped version number to <I>a2. | py |
diff --git a/dolo/numeric/decision_rules_states.py b/dolo/numeric/decision_rules_states.py
index <HASH>..<HASH> 100644
--- a/dolo/numeric/decision_rules_states.py
+++ b/dolo/numeric/decision_rules_states.py
@@ -1,4 +1,4 @@
-from numpy import tile, dot
+from numpy import tile, dot, atleast_2d
from dolo.numeric.tensor i... | Perturbation decision rules can be evaluated on vectors. | py |
diff --git a/cleverhans/feat_advs.py b/cleverhans/feat_advs.py
index <HASH>..<HASH> 100644
--- a/cleverhans/feat_advs.py
+++ b/cleverhans/feat_advs.py
@@ -1,3 +1,10 @@
+"""
+This module inmplements a fast implementation of Feature Adversaries, an attack
+against a target internal representation of a model.
+Feature adv... | added module-level docstring. | py |
diff --git a/internetarchive/cli/ia_upload.py b/internetarchive/cli/ia_upload.py
index <HASH>..<HASH> 100755
--- a/internetarchive/cli/ia_upload.py
+++ b/internetarchive/cli/ia_upload.py
@@ -83,6 +83,7 @@ def _upload_files(item, files, upload_kwargs, prev_identifier=None, archive_sess
def main(argv, session):
a... | made ERRORS global to address UnboundLocalError bug. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ class Tox(test_command):
install_requires = [
'six >=1.2.0',
'Django >= 1.8',
- 'Pillow >=2.2.2,<5.0',
+ 'Pillow >=2.2.2,!=5.1.0',
'django-ranged-response == 0.2.0'
]
EXTRAS_REQUIRE = { | #<I>: allow pillow <I>, but <I> is toxic. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -69,7 +69,7 @@ release = "1.0"
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
-language = None
+language = "en"
... | Set language to "en" for documentation | py |
diff --git a/socketio/asyncio_manager.py b/socketio/asyncio_manager.py
index <HASH>..<HASH> 100644
--- a/socketio/asyncio_manager.py
+++ b/socketio/asyncio_manager.py
@@ -23,7 +23,8 @@ class AsyncManager(BaseManager):
id = None
tasks.append(self.server._emit_internal(sid, event, da... | Handle broadcasts to zero clients Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,12 +13,12 @@ setup(
"beautifulsoup4",
"lxml"
],
- version='0.16',
+ version='0.17',
description='A python library for accessing online data about Makerspaces, Fab Labs, Hackerspaces, TechS... | Move to <I> to solve a problem with PyPi | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name="threat_intel",
- version='0.1.18',
+ version='0.1.19',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_... | Bumping version to <I> | py |
diff --git a/tests/test_asks.py b/tests/test_asks.py
index <HASH>..<HASH> 100644
--- a/tests/test_asks.py
+++ b/tests/test_asks.py
@@ -189,9 +189,8 @@ async def callback_example(chunk):
@curio_run
async def test_callback():
- img = b''
- r = await asks.get('http://httpbin.org/image/png',
- ... | removed unused vars in tests | py |
diff --git a/FlowCal/gate.py b/FlowCal/gate.py
index <HASH>..<HASH> 100644
--- a/FlowCal/gate.py
+++ b/FlowCal/gate.py
@@ -39,6 +39,7 @@ def start_end(data, num_start=250, num_end=100, full_output=False):
the number of parameters (aka channels).
num_start, num_end : int, optional
Number of events... | Changed gate.start_end() behavior with num_end=0. Fixed edge case where `num_end=0` causes non-intuitive array slicing. See #<I>. | py |
diff --git a/src/naarad/metrics/jmeter_metric.py b/src/naarad/metrics/jmeter_metric.py
index <HASH>..<HASH> 100644
--- a/src/naarad/metrics/jmeter_metric.py
+++ b/src/naarad/metrics/jmeter_metric.py
@@ -20,8 +20,8 @@ import naarad.utils
logger = logging.getLogger('naarad.metrics.JmeterMetric')
class JmeterMetric(Me... | Fix Jmeter Metric which was broken after latest merge | py |
diff --git a/registration/forms.py b/registration/forms.py
index <HASH>..<HASH> 100644
--- a/registration/forms.py
+++ b/registration/forms.py
@@ -3,7 +3,7 @@ from django.contrib.auth.models import User
class RegistrationForm(forms.Form):
- username = forms.CharField(max_length=32, required=True)
+ username ... | Corrected length mismatch between registration form and database for username field | py |
diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/spaces.py
+++ b/holoviews/core/spaces.py
@@ -463,13 +463,13 @@ class DynamicMap(HoloMap):
""")
def __init__(self, callback, initial_items=None, **params):
+ super(DynamicMap, self).__i... | Setting stream sources in DynamicMap after setting the parameters | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,8 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
- name='facebook-python-sdk',
+ name='facebook-sdk',
version='0.2.0',
description='This client library i... | Rename the package so we can push to PyPi | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -3,13 +3,13 @@
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy'
-__version__ = '2.0.12.dev1'
+__version__ = '2.0.12'
__summary__ = 'Industrial-strength Nat... | Set about to <I> release | py |
diff --git a/hearthstone/entities.py b/hearthstone/entities.py
index <HASH>..<HASH> 100644
--- a/hearthstone/entities.py
+++ b/hearthstone/entities.py
@@ -75,6 +75,8 @@ class Game(Entity):
self.initial_entities.append(entity)
def find_entity_by_id(self, id):
+ # int() for LazyPlayer mainly...
+ id = int(id)
... | entities: Always int-ify the argument to Game.find_entity_by_id() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,6 @@ setup(
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.4",
... | Remove <I> from supported versions. | py |
diff --git a/openquake/commonlib/commands/info.py b/openquake/commonlib/commands/info.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/commands/info.py
+++ b/openquake/commonlib/commands/info.py
@@ -50,6 +50,8 @@ def info(name, filtersources=False):
oqparam, sitecol, prefilter=filtersources, in_mem... | Added a reference to the documentation | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -3,7 +3,7 @@
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy'
-__version__ = '2.0.12'
+__version__ = '2.0.13.dev0'
__summary__ = 'Industrial-strength Natur... | Set version to <I>.dev0 | py |
diff --git a/tenant_schemas/apps.py b/tenant_schemas/apps.py
index <HASH>..<HASH> 100644
--- a/tenant_schemas/apps.py
+++ b/tenant_schemas/apps.py
@@ -1,4 +1,4 @@
-from django.apps import AppConfig
+from django.apps import AppConfig, apps
from django.conf import settings
from django.core.checks import Critical, Error... | Update apps.py Populate `app_configs` if it is `None`. | py |
diff --git a/salt/modules/composer.py b/salt/modules/composer.py
index <HASH>..<HASH> 100644
--- a/salt/modules/composer.py
+++ b/salt/modules/composer.py
@@ -146,7 +146,10 @@ def install(dir,
if optimize is True:
cmd += ' --optimize-autoloader'
- result = __salt__['cmd.run_all'](cmd, runas=runas, en... | composer module python_shell=False additon | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ setup(
install_requires=[
'django-modeldict>=1.1.6',
'nexus>=0.2.3',
- 'django-jsonfield',
+ 'django-jsonfield==0.6',
],
license='Apache License 2.0',
tests_re... | Lock json field at <I> | py |
diff --git a/flask_appbuilder/models/__init__.py b/flask_appbuilder/models/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_appbuilder/models/__init__.py
+++ b/flask_appbuilder/models/__init__.py
@@ -1,7 +1,7 @@
import logging
import re
from sqlalchemy.ext.declarative import declared_attr
-from sqlalchemy.ext.dec... | Model base class improv with decorator | py |
diff --git a/pygount/write.py b/pygount/write.py
index <HASH>..<HASH> 100644
--- a/pygount/write.py
+++ b/pygount/write.py
@@ -157,28 +157,18 @@ class SummaryWriter(BaseWriter):
for index, language_summary in enumerate(language_summaries, start=1):
table.add_row(
language_summary.... | Replace list comprehensions with code duplication | py |
diff --git a/scaleiopy/scaleio.py b/scaleiopy/scaleio.py
index <HASH>..<HASH> 100644
--- a/scaleiopy/scaleio.py
+++ b/scaleiopy/scaleio.py
@@ -577,7 +577,8 @@ class ScaleIO(SIO_Generic_Object):
self.logger.error('_do_get() - HTTP response error: %s', response.status_code)
self.logger.e... | add error logs to runtime error in _do_X Its hard to debug whats going on when you always get ```_do_post() - Communication error with ScaleIO gateway``` adding the actual error to the log will help this, came across and SSL / Cert error recently that wasn't caught so I was only getting the above string for an error. | py |
diff --git a/validator/outputhandlers/shellcolors.py b/validator/outputhandlers/shellcolors.py
index <HASH>..<HASH> 100644
--- a/validator/outputhandlers/shellcolors.py
+++ b/validator/outputhandlers/shellcolors.py
@@ -1,5 +1,8 @@
import re
-import curses
+try:
+ import curses
+except ImportError:
+ curses = Non... | Windows: ncurses might not be available Simply skip colors if ncurses is not available | py |
diff --git a/cmsplugin_cascade/bootstrap3/carousel.py b/cmsplugin_cascade/bootstrap3/carousel.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/bootstrap3/carousel.py
+++ b/cmsplugin_cascade/bootstrap3/carousel.py
@@ -153,8 +153,6 @@ class CarouselSlidePlugin(BootstrapPluginBase):
def get_css_classes(cls, obj... | CSS class 'active' is controled via template | py |
diff --git a/src/pybel/parser/parse_metadata.py b/src/pybel/parser/parse_metadata.py
index <HASH>..<HASH> 100644
--- a/src/pybel/parser/parse_metadata.py
+++ b/src/pybel/parser/parse_metadata.py
@@ -205,6 +205,9 @@ class MetadataParser(BaseParser):
def handle_annotation_pattern(self, s, l, tokens):
name... | Remove url rewriting and better logging | py |
diff --git a/svg/charts/graph.py b/svg/charts/graph.py
index <HASH>..<HASH> 100644
--- a/svg/charts/graph.py
+++ b/svg/charts/graph.py
@@ -15,13 +15,14 @@ import functools
import cssutils
from lxml import etree
-from svg.charts import css # causes the SVG profile to be loaded
-
try:
import zlib
except ImportErr... | Use __import__ for imperative imports | py |
diff --git a/ib_insync/util.py b/ib_insync/util.py
index <HASH>..<HASH> 100644
--- a/ib_insync/util.py
+++ b/ib_insync/util.py
@@ -505,7 +505,7 @@ def formatIBDatetime(dt: Union[date, datetime, str, None]) -> str:
elif isinstance(dt, datetime):
if dt.tzinfo:
# convert to local system timezone... | Add explicit timezone of None to accomodate pandas Timestamp, fixes #<I> | py |
diff --git a/mapillary_tools/uploader.py b/mapillary_tools/uploader.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/uploader.py
+++ b/mapillary_tools/uploader.py
@@ -870,7 +870,7 @@ def send_videos_for_processing(video_import_path, user_name, user_email=None, us
for video in tqdm(all_videos, desc="Uploading... | fix: disable reading NMEA date since it was causing unnecessary errors | py |
diff --git a/tff/io.py b/tff/io.py
index <HASH>..<HASH> 100644
--- a/tff/io.py
+++ b/tff/io.py
@@ -343,6 +343,9 @@ class DefaultPTY(PTY):
new[6][termios.VSUSP] = vdisable # Ctrl-Z
new[6][termios.VQUIT] = vdisable # Ctrl-\
+ VDSUSP = 11
+ new[6][VDSUSP] = vdisable # Ctrl-Y
+
... | Fix VDSUSP (Ctrl-y) issue | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,13 @@
#!/usr/bin/env python
-from distutils.core import setup
+from setuptools import setup
-setup(name='cloudkey', version='1.0', py_modules=['cloudkey'])
+setup(name='cloudkey',
+ description='Dailymotion C... | Add dependancies to setup.py and use setuptools instead of distutuils | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -10,6 +10,7 @@ from libtmux.server import Server
from libtmux.test import TEST_SESSION_PREFIX, get_test_session_name, namer
logger = logging.getLogger(__name__)
+USING_ZSH = "zsh" in os.... | tests: If ZSH is the shell, stub out zshrc to prevent default message | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
-version = __version__ = "4.46.0.46 Unreleased\nAdded exception details if have a problem with the wm_overriderediect"
+version = __version__ = "4.46.0.47 Unreleased... | Fix for a couple of docstrings | py |
diff --git a/versions/models.py b/versions/models.py
index <HASH>..<HASH> 100644
--- a/versions/models.py
+++ b/versions/models.py
@@ -208,6 +208,11 @@ class VersionedQuerySet(QuerySet):
item.as_of = self.query_time
elif isinstance(item, VersionedQuerySet):
item.query_time = self.quer... | Handling ValuesQuerySet ValuesQuerySet are used when the client code is using the .values() function to retrieve a specific set of attributes from the objects. In such case we really can not and don't want to the query_time or do the type check. | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -842,7 +842,6 @@ class MainWindow(QMainWindow):
plugin_name = plugin_class.NAME
# Non-migrated plugins
if plugin_name in ... | Remove outline explorrer from old plugins | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ from setuptools import setup, find_packages
setup(
name="django-deployer",
- version="0.1.0",
+ version="0.1.1",
description="Django deployment utility for popular PaaS providers",
long_des... | Bump the version since we now have AppEngine support, and pin the versions of the dependencies just to be safe. | py |
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mysql.py
+++ b/salt/modules/mysql.py
@@ -808,7 +808,7 @@ def version(**connection_args):
return ''
try:
- return cur.fetchone()[0]
+ return salt.utils.data.decode(cur.fetchone()[0])
... | Fixes mysql server version comparison. Issue #<I>. | py |
diff --git a/tests/testapp_nogui/main.py b/tests/testapp_nogui/main.py
index <HASH>..<HASH> 100644
--- a/tests/testapp_nogui/main.py
+++ b/tests/testapp_nogui/main.py
@@ -2,19 +2,21 @@
from math import sqrt
for i in range(50):
- print i, sqrt(i)
+ print(i, sqrt(i))
-print 'Just printing stuff apparently wor... | Added jnius import test to test app | py |
diff --git a/semantic_release/__init__.py b/semantic_release/__init__.py
index <HASH>..<HASH> 100644
--- a/semantic_release/__init__.py
+++ b/semantic_release/__init__.py
@@ -1,6 +1,6 @@
"""Semantic Release
"""
-__version__ = "7.2.0"
+__version__ = "7.2.1"
from .errors import UnknownCommitMessageStyleError # no... | <I> Automatically generated by python-semantic-release | py |
diff --git a/discord/message.py b/discord/message.py
index <HASH>..<HASH> 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -720,7 +720,8 @@ class Message:
@staticmethod
def _emoji_reaction(emoji):
if isinstance(emoji, Reaction):
- return emoji.emoji
+ emoji = emoji.em... | Fix behavior of reaction type-conversion | py |
diff --git a/beeswarm/honeypot/capabilities/ftp.py b/beeswarm/honeypot/capabilities/ftp.py
index <HASH>..<HASH> 100644
--- a/beeswarm/honeypot/capabilities/ftp.py
+++ b/beeswarm/honeypot/capabilities/ftp.py
@@ -212,6 +212,7 @@ class BeeFTPHandler(object):
def stop(self):
self.conn.close()
+ self.... | fix disconnect for ftp capability | py |
diff --git a/ntfy/backends/linux.py b/ntfy/backends/linux.py
index <HASH>..<HASH> 100644
--- a/ntfy/backends/linux.py
+++ b/ntfy/backends/linux.py
@@ -5,7 +5,7 @@ from ..data import icon
def notify(title,
message,
- icon=icon.png,
+ icon=path.abspath(icon.png),
urgency=Non... | Make theme icons available for linux backend the abspath is only called on default object icon.png That way we can specify a them icon, which does not need an absolute path. | py |
diff --git a/montblanc/impl/biro/slvr_config.py b/montblanc/impl/biro/slvr_config.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/biro/slvr_config.py
+++ b/montblanc/impl/biro/slvr_config.py
@@ -45,16 +45,6 @@ class BiroSolverConfigurationOptions(Options):
'Governs the level of discretisation of '
... | Remove the E_beam_config option, just use the beam dimensions in the base Solver Configuration dictionary. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(name='openaccess_epub',
'openaccess_epub.ncx', 'openaccess_epub.opf',
'openaccess_epub.ops', 'openaccess_epub.utils'],
scripts=['scripts/oaepub', 'scripts/epubzip',... | adding README.md to the data_files in setup | py |
diff --git a/phoebe/units/conversions.py b/phoebe/units/conversions.py
index <HASH>..<HASH> 100644
--- a/phoebe/units/conversions.py
+++ b/phoebe/units/conversions.py
@@ -511,8 +511,11 @@ import datetime
#-- optional libraries: WARNING: when these modules are not installed, the
# module's use is restricted
-try: ... | removed pyephem warning when importing conversions | py |
diff --git a/spadespipeline/quality.py b/spadespipeline/quality.py
index <HASH>..<HASH> 100755
--- a/spadespipeline/quality.py
+++ b/spadespipeline/quality.py
@@ -171,7 +171,7 @@ class Quality(object):
if self.numreads == 2:
# Incorporate read length into the minlength parameter - ... | Needed to ensure that variable was treated as an integer | py |
diff --git a/pandas/core/index.py b/pandas/core/index.py
index <HASH>..<HASH> 100644
--- a/pandas/core/index.py
+++ b/pandas/core/index.py
@@ -790,7 +790,8 @@ class MultiIndex(Index):
Parameters
----------
- level : int, default 0
+ level : int or str, default 0
+ If a strin... | ENH: Allow to sort on index level by name | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.