diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/mrcfile/validator.py b/mrcfile/validator.py
index <HASH>..<HASH> 100644
--- a/mrcfile/validator.py
+++ b/mrcfile/validator.py
@@ -76,7 +76,7 @@ def validate_all(names, print_file=None):
def validate(name, print_file=None):
"""Validate an MRC file.
- This function first opens the file by call... | Fix reference to open() function in validator docs | py |
diff --git a/uncompyle6/scanners/scanner3.py b/uncompyle6/scanners/scanner3.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/scanners/scanner3.py
+++ b/uncompyle6/scanners/scanner3.py
@@ -894,7 +894,7 @@ class Scanner3(Scanner):
return
pass
... | Reduce adding RETURN_END_IF in <I>+ The whole control flow determination has to be redone in a less haphazard way using real flow-control analysis. Hopefully that's on the way. In the meantime we have this hack. | py |
diff --git a/sanic_limiter/extension.py b/sanic_limiter/extension.py
index <HASH>..<HASH> 100644
--- a/sanic_limiter/extension.py
+++ b/sanic_limiter/extension.py
@@ -2,7 +2,7 @@
the sanic extension
"""
-from functools import wraps, partial
+from functools import partial
import logging
import six
import sys
@@ -... | Get rid of empty wrappers There is no need to wrap decorated object if its behaviour remains unchanged. This also allows a user to decorate custom views subclassed of HTTPMethodView. | py |
diff --git a/geopy/point.py b/geopy/point.py
index <HASH>..<HASH> 100644
--- a/geopy/point.py
+++ b/geopy/point.py
@@ -47,8 +47,8 @@ class Point(object):
>>> p.altitude == p[2]
True
- When unpacking (or iterating), only latitude and longitude are included:
- >>> latitude, longitude = p
+ When u... | Point: correct doctstring to include 'altitude' as third parameter returned when unpacking git-svn-id: <URL> | py |
diff --git a/daskernetes/core.py b/daskernetes/core.py
index <HASH>..<HASH> 100644
--- a/daskernetes/core.py
+++ b/daskernetes/core.py
@@ -86,7 +86,7 @@ class KubeCluster(object):
host='0.0.0.0',
port=0,
env=None,
- **kwargs,
+ **kwargs
):
self.... | Support Python <I> (#<I>) | py |
diff --git a/src/toil/jobStores/googleJobStore.py b/src/toil/jobStores/googleJobStore.py
index <HASH>..<HASH> 100644
--- a/src/toil/jobStores/googleJobStore.py
+++ b/src/toil/jobStores/googleJobStore.py
@@ -318,16 +318,16 @@ class GoogleJobStore(AbstractJobStore):
@staticmethod
def _retryCreateBucket(uri, h... | Add FIXME about potential connection leak in Google job store Cosmetics. | py |
diff --git a/segno/cli.py b/segno/cli.py
index <HASH>..<HASH> 100644
--- a/segno/cli.py
+++ b/segno/cli.py
@@ -258,6 +258,7 @@ class _AttrDict(dict):
super(_AttrDict, self).__init__(*args, **kwargs)
self.__dict__ = self
+
_COLOR_NAME2TYPE = {
'finder_dark': mt.TYPE_FINDER_PATTERN_DARK,
'f... | Added NL (PEP8) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,5 +29,8 @@ setuptools.setup(
'Programming Language :: Python :: 3.6',
],
packages=['aiowebrtc'],
- install_requires=['aioice', 'crcmod', 'pyee', 'pylibsrtp'],
+ install_requires=['aioice', 'crcmod'... | [setup] mention cryptography >= <I> | py |
diff --git a/ceph_deploy/__init__.py b/ceph_deploy/__init__.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/__init__.py
+++ b/ceph_deploy/__init__.py
@@ -0,0 +1,3 @@
+
+__version__ = '1.2.1b'
+ | add the version to dunder init | py |
diff --git a/insteon/api.py b/insteon/api.py
index <HASH>..<HASH> 100644
--- a/insteon/api.py
+++ b/insteon/api.py
@@ -69,6 +69,7 @@ class InsteonAPI(object):
payload = decoded_line.split(': ')
self._handle_stream_message(payload[0], payload[1], devices_to_watch)
... | Added print for debugging errors | py |
diff --git a/schema_salad/makedoc.py b/schema_salad/makedoc.py
index <HASH>..<HASH> 100644
--- a/schema_salad/makedoc.py
+++ b/schema_salad/makedoc.py
@@ -238,17 +238,18 @@ class RenderType(object):
for tp in p:
if tp not in self.uses:
... | Fix doc generation refactor t -> entry (#<I>) refs #<I> | py |
diff --git a/vais/simulator.py b/vais/simulator.py
index <HASH>..<HASH> 100644
--- a/vais/simulator.py
+++ b/vais/simulator.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
# simulator.py
class Simulator(object): | added header for python3 | py |
diff --git a/gnupg/tests/test_gnupg.py b/gnupg/tests/test_gnupg.py
index <HASH>..<HASH> 100644
--- a/gnupg/tests/test_gnupg.py
+++ b/gnupg/tests/test_gnupg.py
@@ -11,7 +11,6 @@ import argparse
import doctest
import logging
from functools import wraps
-import inspect
import io
import os
import shutil
@@ -768,11 +7... | Remove unused code from the unittest runner. | py |
diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUIQt/PySimpleGUIQt.py
+++ b/PySimpleGUIQt/PySimpleGUIQt.py
@@ -2635,7 +2635,8 @@ class Table(Element):
class QTTableWidget(QTableWidget):
- def __init__(self, window):
+ def __i... | Fix for crashing when Updating a table, got KeyEventsEnabled attribute error | py |
diff --git a/pyghmi/ipmi/oem/lenovo/config.py b/pyghmi/ipmi/oem/lenovo/config.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/oem/lenovo/config.py
+++ b/pyghmi/ipmi/oem/lenovo/config.py
@@ -20,7 +20,6 @@
# servers
import ast
-import EfiDecompressor
import struct
import random
import pyghmi.exceptions as pygexc | Removes relative import for EfiDecompressor The absolute import path is already specified in config.py. Change-Id: Icd0fa<I>a<I>a<I>a<I>f<I>a<I>a<I> | py |
diff --git a/infoq.py b/infoq.py
index <HASH>..<HASH> 100644
--- a/infoq.py
+++ b/infoq.py
@@ -229,13 +229,13 @@ class InfoQ(object):
def download(self, url, dir_path, filename=None):
if not filename:
filename = url.rsplit('/', 1)[1]
+ path = os.path.join(dir_path, filename)
... | Fix bug in download. Return the full path of the file rather than the basename | py |
diff --git a/salt/output/highstate.py b/salt/output/highstate.py
index <HASH>..<HASH> 100644
--- a/salt/output/highstate.py
+++ b/salt/output/highstate.py
@@ -150,10 +150,17 @@ def _format_host(host, data):
comment = ret['comment'].strip().replace(
'\n',
'\n' +... | Add extra handling to highstate outputter for 'Comment' | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
keywords = "voltron gdb lldb",
url = "https://github.com/snarez/voltron",
packages=find_packages(),
- install_requires = ['rl', 'scruffy', 'flask', 'cherrypy', 'blessed'],
+ install_r... | Added pygments to requirements | py |
diff --git a/skpy/main.py b/skpy/main.py
index <HASH>..<HASH> 100644
--- a/skpy/main.py
+++ b/skpy/main.py
@@ -184,19 +184,25 @@ class SkypeEventLoop(Skype):
if status:
self.setPresence(status)
+ def cycle(self):
+ """
+ Run one cycle of :meth:`loop`; get the most recent events ... | Add SkypeEventLoop.cycle to allow subclasses to modify event loop behavior. | py |
diff --git a/summary/filters.py b/summary/filters.py
index <HASH>..<HASH> 100644
--- a/summary/filters.py
+++ b/summary/filters.py
@@ -154,6 +154,15 @@ class MonoImageFilter(object): # SizeImageFilter
Checks whether the image is (plain black or) white and returns None.
Otherwise return the Image instance.
http:... | MonoImageFilter left to do | py |
diff --git a/hpcbench/benchmark/ior.py b/hpcbench/benchmark/ior.py
index <HASH>..<HASH> 100644
--- a/hpcbench/benchmark/ior.py
+++ b/hpcbench/benchmark/ior.py
@@ -217,14 +217,14 @@ class IOR(Benchmark):
def pre_execute(self, execution, context):
"""Make sure the named directory is created if possible"""
... | fixup! ior: fix path expansion in pre_execute | py |
diff --git a/VersionInfo.py b/VersionInfo.py
index <HASH>..<HASH> 100644
--- a/VersionInfo.py
+++ b/VersionInfo.py
@@ -5,5 +5,5 @@ ReferencePylonVersion = {
# which is not equal to the version on the outer tar.gz
"Linux": "6.1.0",
"Linux_x86_64": "6.1.1",
- "Darwin": "5.1.1"
+ "Darwin": "6.1.2"
} | Update the official upstream version for macos This prevents the additional +pylonX.Y.Z addition on the python package | py |
diff --git a/salt/runners/jobs.py b/salt/runners/jobs.py
index <HASH>..<HASH> 100644
--- a/salt/runners/jobs.py
+++ b/salt/runners/jobs.py
@@ -31,7 +31,8 @@ def active():
'Function': job['fun'],
'Arguments': list(job['arg']),
... | This will print the user who initiated the job So you can see who has an active job running and when printing a job result who has initiated it. This will help auditing a salt job | py |
diff --git a/vulture/core.py b/vulture/core.py
index <HASH>..<HASH> 100644
--- a/vulture/core.py
+++ b/vulture/core.py
@@ -329,7 +329,7 @@ class Vulture(ast.NodeVisitor):
if isinstance(node.ctx, ast.Store):
self.defined_attrs.append(item)
elif isinstance(node.ctx, ast.Load):
- ... | store plain strings in used_attrs list | py |
diff --git a/tests/test_arista.py b/tests/test_arista.py
index <HASH>..<HASH> 100755
--- a/tests/test_arista.py
+++ b/tests/test_arista.py
@@ -20,9 +20,9 @@ def setup_module(module):
SSHClass = netmiko.ssh_dispatcher(arista_veos_sw['device_type'])
net_connect = SSHClass(**arista_veos_sw)
- module.sho... | Adjusting delay factor times for arista test | py |
diff --git a/host/calibrate_hit_or.py b/host/calibrate_hit_or.py
index <HASH>..<HASH> 100644
--- a/host/calibrate_hit_or.py
+++ b/host/calibrate_hit_or.py
@@ -112,7 +112,7 @@ class HitOrScan(ScanBase):
tot_std = np.std(hits["tot"])
tdc_std = np.std(hits["TDC"])
... | BUG: TDC data is now histogramed before plotting | py |
diff --git a/tests/scripts/install_odoo.py b/tests/scripts/install_odoo.py
index <HASH>..<HASH> 100755
--- a/tests/scripts/install_odoo.py
+++ b/tests/scripts/install_odoo.py
@@ -42,12 +42,14 @@ def clone_odoo():
def install_odoo():
- # Odoo not compatible with recent pyyaml due to load() now being safe by defa... | workaround compatibility issue with werkzeug >= 1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,5 +9,5 @@ setup(name="html_wrapper",
packages=['html_wrapper'],
zip_safe=True,
install_requires=["lxml"],
- keywords = "html parser wrapper beautifulsoup bs4 lxml xml html fast xpath".split(),
+ ... | Add requirments and keywords | py |
diff --git a/faker/providers/internet.py b/faker/providers/internet.py
index <HASH>..<HASH> 100644
--- a/faker/providers/internet.py
+++ b/faker/providers/internet.py
@@ -4,7 +4,7 @@ import random
import re
from faker.providers.lorem import Provider as Lorem
-from faker.utils import text
+from faker.utils.decorator... | slugify user_name and remove duplicated functionality form internet provider | py |
diff --git a/paramiko/util.py b/paramiko/util.py
index <HASH>..<HASH> 100644
--- a/paramiko/util.py
+++ b/paramiko/util.py
@@ -226,21 +226,21 @@ def mod_inverse(x, m):
u2 += m
return u2
-g_thread_ids = {}
-g_thread_counter = 0
-g_thread_lock = threading.Lock()
+_g_thread_ids = {}
+_g_thread_counter = 0
... | [project @ Arch-1:<EMAIL><I>-master-shake%paramiko--dev--1--patch-<I>] rename 3 globals so they're not exposed in docs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -44,6 +44,10 @@ setup(
],
package_data={
'saltcloud': ['deploy/*'],
- },
+ },
+ data_files=[('share/man/man1',
+ ['doc/man/salt-cloud.1']),
+ ... | Add man pages to the setup.py | py |
diff --git a/notifications_python_client/authentication.py b/notifications_python_client/authentication.py
index <HASH>..<HASH> 100644
--- a/notifications_python_client/authentication.py
+++ b/notifications_python_client/authentication.py
@@ -109,9 +109,10 @@ def decode_jwt_token(token, secret):
# check iat ti... | PyJWT has stopped doing the check that the token is in the future. This PR adds a check that the token is not in the the future. | py |
diff --git a/tests/test_timedated.py b/tests/test_timedated.py
index <HASH>..<HASH> 100644
--- a/tests/test_timedated.py
+++ b/tests/test_timedated.py
@@ -18,7 +18,7 @@ import subprocess
import dbusmock
# timedatectl keeps changing its CLI output
-TIMEDATECTL_NTP_LABEL = '(NTP enabled|NTP synchronized|systemd-times... | test: Adjust timedated test to systemd <I> timedatectl changed its output format again, now to "System clock synchronized". | py |
diff --git a/flask_sqlalchemy_booster/responses.py b/flask_sqlalchemy_booster/responses.py
index <HASH>..<HASH> 100644
--- a/flask_sqlalchemy_booster/responses.py
+++ b/flask_sqlalchemy_booster/responses.py
@@ -21,7 +21,7 @@ PER_PAGE_ITEMS_COUNT = 20
OPERATORS = ['~', '=', '>', '<', '>=', '!', '<=']
OPERATOR_FUNC = {... | fixed double repetition of > symbol in operators. Right now, it is parsed as __ge__ itself | py |
diff --git a/runway/commands/runway/gen_sample.py b/runway/commands/runway/gen_sample.py
index <HASH>..<HASH> 100644
--- a/runway/commands/runway/gen_sample.py
+++ b/runway/commands/runway/gen_sample.py
@@ -303,9 +303,9 @@ def generate_sample_cdk_tsc_module(env_root, module_dir=None):
os.path.join(module_d... | sls-tsc sample: add missing .gitignore files (#<I>) Some files and folders were not included previously. Based on contribution from @mugfordsfcc in #<I> | py |
diff --git a/anharmonic/settings.py b/anharmonic/settings.py
index <HASH>..<HASH> 100644
--- a/anharmonic/settings.py
+++ b/anharmonic/settings.py
@@ -8,8 +8,8 @@ class Phono3pySettings(Settings):
self._coarse_mesh_shifts = None
self._cutoff_fc3_distance = None
self._cutoff_pair_distance = No... | Default boundary mean free path is set 1 metre to avoid divergence. | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -149,6 +149,7 @@ LANG_RELEASE_MATRIX = {
('v1.22.3', ReleaseInfo(runtimes=['go1.11'])),
... | Add <I> release of grpc-go to interop matrix | py |
diff --git a/cosmic_ray/worker.py b/cosmic_ray/worker.py
index <HASH>..<HASH> 100644
--- a/cosmic_ray/worker.py
+++ b/cosmic_ray/worker.py
@@ -77,7 +77,7 @@ def worker(module_name,
if not core.activation_record:
return WorkRecord(
- work_outcome=WorkerOutcome.NO_TEST)
... | Fixed incorrect field name when constructing work records. When we reported "no work" from a worker, we were using the wrong field name. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,6 @@
#!/usr/bin/env python
-try:
- from setuptools import setup
-except ImportError:
- from distutils.core import setup
+from distutils.core import setup
import vingd | Use distutils.core.setup only. | py |
diff --git a/features/steps/peer.py b/features/steps/peer.py
index <HASH>..<HASH> 100644
--- a/features/steps/peer.py
+++ b/features/steps/peer.py
@@ -48,7 +48,7 @@ def step_impl(context):
packeter.CLIENT_ID,
packeter.config.getint('network', 'listen_port'),
packeter.CAPABILITIES,... | fix:adjust test to coinbase | py |
diff --git a/ladybug/windrose.py b/ladybug/windrose.py
index <HASH>..<HASH> 100644
--- a/ladybug/windrose.py
+++ b/ladybug/windrose.py
@@ -118,7 +118,7 @@ class WindRose(object):
self._show_zeros = True
self._base_point = None
self._compass = None
- self._north = None
+ self._no... | fix(windrose): Style changes to _north and comment block. | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -1009,7 +1009,7 @@ class Gitlab(object):
return json.loads(request.content.decode("utf-8"))
else:
msg = json.loads(request.content.decode("utf-8"))['me... | Raise exception instead of returing it. Fixes Itxaka/pyapi-gitlab#<I> | py |
diff --git a/ykman/piv.py b/ykman/piv.py
index <HASH>..<HASH> 100644
--- a/ykman/piv.py
+++ b/ykman/piv.py
@@ -557,8 +557,9 @@ class PivController(object):
def read_certificate(self, slot):
data = _parse_tlv_dict(self.get_data(OBJ.from_slot(slot)))
- if data[TAG.CERT_INFO] != b'\0':
- ... | piv: fix for reading cert from attestation slot | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3334,6 +3334,13 @@ class Symbol(object):
return self._cached_tri_val
if self.orig_type not in (BOOL, TRISTATE):
+ if self.orig_type != UNKNOWN:
+ # Would t... | Warn if int/hex/string symbols are evaluated logically They always evaluate to n. Would be nice if there was a trivial way to give the location(s). Just say "somewhere" for now. | py |
diff --git a/performanceplatform/client.py b/performanceplatform/client.py
index <HASH>..<HASH> 100644
--- a/performanceplatform/client.py
+++ b/performanceplatform/client.py
@@ -67,13 +67,13 @@ class DataSet(object):
)
try:
response.raise_for_status()
- return ... | Move return statement - Allows debug statement to run, ever - Should return a response object if no exception is raised, this seems correct | py |
diff --git a/pydsl/Grammar/Definition.py b/pydsl/Grammar/Definition.py
index <HASH>..<HASH> 100644
--- a/pydsl/Grammar/Definition.py
+++ b/pydsl/Grammar/Definition.py
@@ -71,6 +71,9 @@ class RegularExpressionDefinition(GrammarDefinition):
import re
self.regexp = re.compile(regexp, flags)
+ def __... | hash support for regexp grammars | py |
diff --git a/numina/core/oresult.py b/numina/core/oresult.py
index <HASH>..<HASH> 100644
--- a/numina/core/oresult.py
+++ b/numina/core/oresult.py
@@ -21,6 +21,8 @@
Results of the Observing Blocks
'''
+import pyfits
+
from dataframe import DataFrame
class FrameInformation(object):
@@ -62,6 +64,8 @@ def datafra... | Store fits.HDUList in DataFrame | py |
diff --git a/raiden/tests/integration/api/test_restapi.py b/raiden/tests/integration/api/test_restapi.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/api/test_restapi.py
+++ b/raiden/tests/integration/api/test_restapi.py
@@ -1158,6 +1158,19 @@ def test_api_payments(
response = request.send().response... | Add test for internal events rest api endpoint The internal events endpoint is not tested at all. This commit adds a simple test to make sure it works. | py |
diff --git a/datadog_checks_base/datadog_checks/base/utils/agent/packages.py b/datadog_checks_base/datadog_checks/base/utils/agent/packages.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_base/datadog_checks/base/utils/agent/packages.py
+++ b/datadog_checks_base/datadog_checks/base/utils/agent/packages.py
@@ -15,4 ... | Fix package order of `get_datadog_wheels` (#<I>) * Ensure package order of `get_datadog_wheels` * other way around actually * fix * typo | py |
diff --git a/asteval/__init__.py b/asteval/__init__.py
index <HASH>..<HASH> 100644
--- a/asteval/__init__.py
+++ b/asteval/__init__.py
@@ -11,7 +11,7 @@
using python, ast module to parse a python expression.
- version: 0.9.6
+ version: 0.9.7
last update: 10-April-2016
License: BSD
Author: Matt... | version <I> (borked <I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -85,7 +85,7 @@ setup(
include_package_data=True,
install_requires=['sovrin-common-3pc-batch==0.2.2', 'anoncreds-dev==0.3.4'],
setup_requires=['pytest-runner'],
- tests_require=['pytest', 'sovrin-node-3pc-batc... | fixed sovrin-node version (#<I>) | py |
diff --git a/hotdoc/core/formatter.py b/hotdoc/core/formatter.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/formatter.py
+++ b/hotdoc/core/formatter.py
@@ -528,7 +528,8 @@ class Formatter(Configurable):
'link_title': title})
return out
- def _format_type_tokens(s... | Pass currenly formatting symbol to _format_type_token To give some context to subclasses, as, for example in the GIFormatte needs to know in what language it is formatting | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,12 +8,12 @@ from setuptools import setup, find_packages
# Need to add all dependencies to setup as we go!
setup(name='PyCmdMessenger',
packages=['PyCmdMessenger'],
- version='0.2',
+ version='0.2.1',
... | moving to version <I> as this was critical fix | py |
diff --git a/nuimo_dbus.py b/nuimo_dbus.py
index <HASH>..<HASH> 100644
--- a/nuimo_dbus.py
+++ b/nuimo_dbus.py
@@ -137,6 +137,9 @@ class GattDevice:
pass
elif (self.__connect_retry_attempt < 5) and (e.get_dbus_name() == "org.bluez.Error.Failed") and (e.get_dbus_message() == "Software cause... | Add error case for “no reply” during connection | py |
diff --git a/globus_cli/config.py b/globus_cli/config.py
index <HASH>..<HASH> 100644
--- a/globus_cli/config.py
+++ b/globus_cli/config.py
@@ -4,8 +4,6 @@ from configobj import ConfigObj
import globus_sdk
-from globus_cli import version
-
__all__ = [
# option name constants
'OUTPUT_FORMAT_OPTNAME',
@@ -... | don't use version in client name | py |
diff --git a/glim/cli.py b/glim/cli.py
index <HASH>..<HASH> 100644
--- a/glim/cli.py
+++ b/glim/cli.py
@@ -9,9 +9,9 @@
# |___/
#
#
-# author: Aras Can Akin
-# description: A modern python framework for the web
-# version: 0.8.4
+# A modern python framework for the web
+
+__author__ = "Aras Can Akin"
... | remove version from glim, move author into a variable | py |
diff --git a/scoop/launcher.py b/scoop/launcher.py
index <HASH>..<HASH> 100644
--- a/scoop/launcher.py
+++ b/scoop/launcher.py
@@ -19,7 +19,6 @@
import argparse
import os
import sys
-import socket
import subprocess
import time
import logging | - Removed extraneous import | py |
diff --git a/jsonschema/tests/test_cli.py b/jsonschema/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/jsonschema/tests/test_cli.py
+++ b/jsonschema/tests/test_cli.py
@@ -88,10 +88,10 @@ class TestParser(TestCase):
# Avoid the help message on stdout
with captured_output() as (stdout, stderr):
... | [tests] Fix some linter errors | py |
diff --git a/spacy/lang/hi/examples.py b/spacy/lang/hi/examples.py
index <HASH>..<HASH> 100644
--- a/spacy/lang/hi/examples.py
+++ b/spacy/lang/hi/examples.py
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
"""
Example sentences to test spaCy and its language models.
->>> from spacy.lang.en.examples import ... | Update language code in usage example in comment | py |
diff --git a/tests/test_transport.py b/tests/test_transport.py
index <HASH>..<HASH> 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -25,7 +25,7 @@ class DummyConnection(AIOHttpConnection):
@pytest.mark.run_loop
@asyncio.coroutine
def test_body_surrogates_replaced_encoded_into_bytes(loop):
- ... | non empty hosts is es tests | py |
diff --git a/ajax/endpoints.py b/ajax/endpoints.py
index <HASH>..<HASH> 100644
--- a/ajax/endpoints.py
+++ b/ajax/endpoints.py
@@ -70,7 +70,7 @@ class ModelEndpoint(object):
if self.can_update(request.user, record):
for key, val in self._extract_data(request).iteritems():
setattr(... | Update tags on both create and update. | py |
diff --git a/tests/jobs/test_local_task_job.py b/tests/jobs/test_local_task_job.py
index <HASH>..<HASH> 100644
--- a/tests/jobs/test_local_task_job.py
+++ b/tests/jobs/test_local_task_job.py
@@ -434,6 +434,7 @@ class TestLocalTaskJob(unittest.TestCase):
assert ti.state == State.FAILED # task exits with failur... | Mark test_mark_success_on_success_callback as quarantined (#<I>) Captured the issue in #<I> | py |
diff --git a/fireplace/cards/karazhan/collectible.py b/fireplace/cards/karazhan/collectible.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards/karazhan/collectible.py
+++ b/fireplace/cards/karazhan/collectible.py
@@ -28,9 +28,9 @@ class KAR_029:
"Runic Egg"
deathratter = Draw(CONTROLLER)
-# class KAR_030a:
-# ... | Implement "Pantry Spider" KAR_<I>a | py |
diff --git a/lazysignup/backends.py b/lazysignup/backends.py
index <HASH>..<HASH> 100644
--- a/lazysignup/backends.py
+++ b/lazysignup/backends.py
@@ -1,14 +1,16 @@
from django.contrib.auth.backends import ModelBackend
-from django.contrib.auth.models import User
+from lazysignup.models import LazyUser
class LazySi... | Remove the lazy signup backend's hard dependency on django.contrib.auth.user (and remove the inconsistency in checking for whether a user is lazy or not). | py |
diff --git a/fermipy/diffuse/residual_cr.py b/fermipy/diffuse/residual_cr.py
index <HASH>..<HASH> 100644
--- a/fermipy/diffuse/residual_cr.py
+++ b/fermipy/diffuse/residual_cr.py
@@ -453,7 +453,7 @@ class ResidualCRChain(Chain):
comp = config_dict.get('comp')
dry_run = args.get('dry_run', False)
- ... | Change name of chain in residual_cr.py | py |
diff --git a/cherrypy/_cplogging.py b/cherrypy/_cplogging.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cplogging.py
+++ b/cherrypy/_cplogging.py
@@ -211,7 +211,6 @@ class LogManager(object):
"""
exc_info = None
if traceback:
- msg += _cperror.format_exc()
exc_info = ... | Remove old format of serialising stacktrace in favour of new API | py |
diff --git a/Lib/fontbakery/specifications/googlefonts.py b/Lib/fontbakery/specifications/googlefonts.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/specifications/googlefonts.py
+++ b/Lib/fontbakery/specifications/googlefonts.py
@@ -1362,9 +1362,8 @@ def check_with_msfontvalidator(font):
@condition
def fontforg... | removing a few left-over refs to the fbchecklogger object (issue #<I>) | py |
diff --git a/gffutils/test/test.py b/gffutils/test/test.py
index <HASH>..<HASH> 100644
--- a/gffutils/test/test.py
+++ b/gffutils/test/test.py
@@ -921,8 +921,11 @@ def test_tempfiles():
# .travis.yml sets the PROCESSES env var; otherwise use all available.
PROCESSES = int(os.environ.get("PROCESSES", multiproc... | Avoid deadlocks in tests under Python <I> (#<I>) Looks related to: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ tests_require = [
extras_require = {
'docs': [
- 'Sphinx>=1.4.2',
+ 'Sphinx>=1.5.1',
],
'tests': tests_require,
} | docs: version bump of Sphinx>=<I> * Fixes issue with Sphinx caused by docutils <I> assertion error. (closes #<I>) | py |
diff --git a/molo/core/tests/test_images.py b/molo/core/tests/test_images.py
index <HASH>..<HASH> 100644
--- a/molo/core/tests/test_images.py
+++ b/molo/core/tests/test_images.py
@@ -7,6 +7,7 @@ from molo.core.tests.base import MoloTestCaseMixin
class TestImportableMixin(MoloTestCaseMixin, TestCase):
+class TestIm... | Create failing test ImageInfo should not be created on every save signal | py |
diff --git a/brokit/sumaclust_v1.py b/brokit/sumaclust_v1.py
index <HASH>..<HASH> 100644
--- a/brokit/sumaclust_v1.py
+++ b/brokit/sumaclust_v1.py
@@ -57,6 +57,13 @@ class Sumaclust(CommandLineApplication):
# OTU map (mandatory output)
result['OtuMap'] = ResultPath(Path=self.Parameters['-O'].Value,IsWritten... | added exception to create an empty output file is input was empty for sumaclust | py |
diff --git a/vyper/signatures/interface.py b/vyper/signatures/interface.py
index <HASH>..<HASH> 100644
--- a/vyper/signatures/interface.py
+++ b/vyper/signatures/interface.py
@@ -124,11 +124,12 @@ def mk_full_signature_from_json(abi):
def extract_sigs(sig_code):
if sig_code['type'] == 'vyper':
- interfac... | ignore 'implements' statements when extracting signatures | py |
diff --git a/src/qinfer/resamplers.py b/src/qinfer/resamplers.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/resamplers.py
+++ b/src/qinfer/resamplers.py
@@ -166,14 +166,17 @@ class LiuWestResampler(object):
n_ms, n_mp = l.shape
new_locs = np.empty(l.shape)
- cumsum_weights =... | Fixed resampler leak again, this time for numpy < <I>, too. | py |
diff --git a/km3modules/ahrs.py b/km3modules/ahrs.py
index <HASH>..<HASH> 100644
--- a/km3modules/ahrs.py
+++ b/km3modules/ahrs.py
@@ -94,4 +94,13 @@ def _extract_calibration(xroot):
Aoff = np.array(val[Aoff_ix])[vec_ic]
Hrot = np.array(val[Hrot_ix]).reshape(3, 3)[col_ic, row_ic].reshape(3, 3)
- return A... | Final implementation of ahrs calibration readout | py |
diff --git a/quart/cli.py b/quart/cli.py
index <HASH>..<HASH> 100644
--- a/quart/cli.py
+++ b/quart/cli.py
@@ -53,7 +53,10 @@ class ScriptInfo:
module_path = Path(module_name).resolve()
sys.path.insert(0, str(module_path.parent))
- import_name = module_path.with_suffix... | Bugfix cli module name parsing Quart accepts the Gunicorn format ``file.ext:application`` but should also support the Flask format ``module_a.module_b:application``. To allow for both the code simply checks if the resolved path is a file then Gunicorn and if not Flask. This should help match expected Flask usage. | py |
diff --git a/transducer/infrastructure.py b/transducer/infrastructure.py
index <HASH>..<HASH> 100644
--- a/transducer/infrastructure.py
+++ b/transducer/infrastructure.py
@@ -4,10 +4,18 @@ from abc import ABCMeta, abstractmethod
class Reduced:
- """A sentinel 'box' used to return the final value of a reduction.... | The Reduced wrapper should be idempotent. Wrapping an already Reduced object should have no effect, and not return a doubly wrapped object. | py |
diff --git a/hypercorn/config.py b/hypercorn/config.py
index <HASH>..<HASH> 100644
--- a/hypercorn/config.py
+++ b/hypercorn/config.py
@@ -27,6 +27,7 @@ class Config:
access_log_format = "%(h)s %(r)s %(s)s %(b)s %(D)s"
access_logger: Optional[logging.Logger] = None
+ alpn_protocols = ["h2", "http/1.1"]
... | Allow the ALPN protocols to be configured This allows control over HTTP/2 support, as this is a niche use there is no command line support. | py |
diff --git a/pyxmpp/presence.py b/pyxmpp/presence.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/presence.py
+++ b/pyxmpp/presence.py
@@ -63,6 +63,11 @@ class Presence(Stanza):
del kw["status"]
else:
status=None
+ if kw.has_key("priority"):
+ priority=kw["priority"]
+ del kw["priority"]
+ else:
+ priori... | - process priority argument to Presence constructor | py |
diff --git a/datasift/client.py b/datasift/client.py
index <HASH>..<HASH> 100644
--- a/datasift/client.py
+++ b/datasift/client.py
@@ -8,6 +8,7 @@ from autobahn.twisted.websocket import WebSocketClientFactory, connectWS
from datasift import USER_AGENT, WEBSOCKET_HOST
from datasift.request import PartialRequest, Datas... | added outputmapper support to livestreaming | py |
diff --git a/timezones/fields.py b/timezones/fields.py
index <HASH>..<HASH> 100644
--- a/timezones/fields.py
+++ b/timezones/fields.py
@@ -5,7 +5,7 @@ from django.utils.encoding import smart_unicode, smart_str
import pytz
-from timezones import forms
+from timezones import forms, zones
from timezones.utils import... | Fixed some minor breakage from the last commit | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,5 +23,15 @@ setup(
],
packages=[
'iprestrict',
+ 'iprestrict.management',
+ 'iprestrict.management.commands',
],
+ package_data={
+ 'iprestrict': [
+ 'templates/ip... | Adds data files to setup.py. | py |
diff --git a/django-nova/src/django_nova/views/admin.py b/django-nova/src/django_nova/views/admin.py
index <HASH>..<HASH> 100644
--- a/django-nova/src/django_nova/views/admin.py
+++ b/django-nova/src/django_nova/views/admin.py
@@ -122,11 +122,11 @@ def project_view(request, project_name):
... | adding modify_project to adminclient and fixing typo which caused error on form post | py |
diff --git a/polyaxon/experiments/signals.py b/polyaxon/experiments/signals.py
index <HASH>..<HASH> 100644
--- a/polyaxon/experiments/signals.py
+++ b/polyaxon/experiments/signals.py
@@ -34,9 +34,11 @@ def add_experiment_commit(sender, **kwargs):
# the experiment is new
# that it has an exec section
# th... | Do not set commit on experiment for external repos | py |
diff --git a/tinman/utilities/initialize.py b/tinman/utilities/initialize.py
index <HASH>..<HASH> 100644
--- a/tinman/utilities/initialize.py
+++ b/tinman/utilities/initialize.py
@@ -141,10 +141,10 @@ setup(name='%(project)s',
self._create_package_setup()
-def initialize_project():
+def main():
initia... | Fix the method name to invoke the app | py |
diff --git a/openpnm/core/ModelsMixin.py b/openpnm/core/ModelsMixin.py
index <HASH>..<HASH> 100644
--- a/openpnm/core/ModelsMixin.py
+++ b/openpnm/core/ModelsMixin.py
@@ -183,7 +183,7 @@ class ModelWrapper(dict):
def __str__(self):
horizontal_rule = '―' * 78
lines = [horizontal_rule]
- str... | Fixing formatting error in printing of models | py |
diff --git a/func_timeout/dafunc.py b/func_timeout/dafunc.py
index <HASH>..<HASH> 100644
--- a/func_timeout/dafunc.py
+++ b/func_timeout/dafunc.py
@@ -61,6 +61,9 @@ def func_timeout(timeout, func, args=(), kwargs=None):
def funcwrap(args2, kwargs2):
try:
ret.append( func(*args2, **kwargs2) )
... | Sometimes depending on critical section during timeout, traceback could be printed to stderr. Stop that. | py |
diff --git a/xdis/magics.py b/xdis/magics.py
index <HASH>..<HASH> 100755
--- a/xdis/magics.py
+++ b/xdis/magics.py
@@ -145,6 +145,9 @@ for m in '2.6 2.6.6 2.6.7 2.6.8 2.6.9'.split():
for m in '2.7.1 2.7.2 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.7.10 2.7.11 2.7.12 2.7.13'.split():
magics[m] = magics['2.6... | Fill out magics for <I> | py |
diff --git a/.circleci/regenerate.py b/.circleci/regenerate.py
index <HASH>..<HASH> 100755
--- a/.circleci/regenerate.py
+++ b/.circleci/regenerate.py
@@ -62,9 +62,9 @@ def generate_base_workflow(base_workflow_name, python_version, cu_version,
d["unicode_abi"] = '1'
if cu_version == "cu92":
- d["... | Fix discrepancy in regenerate.py (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ from Cython.Build import cythonize
DOCLINES = __doc__.split("\n")
########################
-VERSION = "0.1.0"
+VERSION = "0.2.0"
ISRELEASED = False
__version__ = VERSION
######################## | Incremented version number in setup.py to <I> to match github release. | py |
diff --git a/django_q/cluster.py b/django_q/cluster.py
index <HASH>..<HASH> 100644
--- a/django_q/cluster.py
+++ b/django_q/cluster.py
@@ -193,7 +193,7 @@ class Sentinel(object):
else:
self.pool.remove(process)
self.spawn_worker()
- if int(process.timer.value) >= self.timeo... | fix reincarnation bug without timeout set | py |
diff --git a/csh_ldap/member.py b/csh_ldap/member.py
index <HASH>..<HASH> 100644
--- a/csh_ldap/member.py
+++ b/csh_ldap/member.py
@@ -103,6 +103,9 @@ class CSHMember:
if value is None or value == "":
ldap_mod = ldap.MOD_DELETE
+ if exists[0][1] == {}:
+ # if element do... | Fix Deletion of undefined Attributes | py |
diff --git a/tests/test_tcod.py b/tests/test_tcod.py
index <HASH>..<HASH> 100644
--- a/tests/test_tcod.py
+++ b/tests/test_tcod.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+import sys
+
import copy
import pickle
@@ -17,8 +19,12 @@ def test_line_error():
tcod.line(*LINE_ARGS, py_callback=raise_Exception)
... | Skip tests on a broken Mac function | py |
diff --git a/searx/webapp.py b/searx/webapp.py
index <HASH>..<HASH> 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -687,6 +687,10 @@ Disallow: /preferences
@app.route('/opensearch.xml', methods=['GET'])
def opensearch():
method = 'post'
+
+ if request.cookies.get('method', 'POST') == 'GET':
+ me... | Fixes #<I> The opensearch method is now the method set in the preferences. As before, POST by default and GET for Chrome/Chromium which doesn't handle POST | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,16 +11,17 @@ with open('HISTORY.md') as history_file:
install_requires = [
'boto3>=1.9.27',
+ 'funcy>=1.11',
'keras>=2.2.4',
'networkx>=2.1',
'numpy>=1.15.2',
'pandas>=0.23.4',
+ 'pillow>=... | add funcy as a dependency | py |
diff --git a/spade/container.py b/spade/container.py
index <HASH>..<HASH> 100644
--- a/spade/container.py
+++ b/spade/container.py
@@ -14,7 +14,7 @@ from .message import Message
logger = logging.getLogger("SPADE")
# check if python is 3.6 or higher
-if sys.version_info > (3, 6) and sys.platform == "win32":
+if sys.... | make last check being <<I> | py |
diff --git a/sdmreader/sdmreader.py b/sdmreader/sdmreader.py
index <HASH>..<HASH> 100644
--- a/sdmreader/sdmreader.py
+++ b/sdmreader/sdmreader.py
@@ -202,7 +202,7 @@ def read_metadata(sdmfile, scan=0, bdfdir=None):
except KeyError:
bdfstr = sdm['Main'][i]['dataOid'].replace(':', ... | changed identication of bad scan bdf location | py |
diff --git a/deployutils/__init__.py b/deployutils/__init__.py
index <HASH>..<HASH> 100644
--- a/deployutils/__init__.py
+++ b/deployutils/__init__.py
@@ -22,4 +22,4 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-__version__ = '0.5.20-dev'
+... | fixes previous release that did not include correct files (setuptools?) | py |
diff --git a/allauth/account/tests.py b/allauth/account/tests.py
index <HASH>..<HASH> 100644
--- a/allauth/account/tests.py
+++ b/allauth/account/tests.py
@@ -23,6 +23,7 @@ User = get_user_model()
(ACCOUNT_EMAIL_VERIFICATION=app_settings.EmailVerificationMethod.MANDATORY,
ACCOUNT_AUTHENTICATION_METHOD=app_se... | Test case failed when ACCOUNT_EMAIL_SUBJECT_PREFIX was set, fixed | py |
diff --git a/wakatime/__init__.py b/wakatime/__init__.py
index <HASH>..<HASH> 100644
--- a/wakatime/__init__.py
+++ b/wakatime/__init__.py
@@ -191,6 +191,8 @@ def parseArguments(argv):
default_key = None
if configs.has_option('settings', 'api_key'):
default_key = configs.get('settings', '... | recognize api_key config without underscore | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -598,11 +598,11 @@ class TestDiagnosticsTables(unittest.TestCase):
[1.49018643e-01],
[2.81601546e-02]])
... | reduce number of values tested to avoid seed problems | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.